Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check EnableHexNumpad before enabling it #17954

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Sep 23, 2024

This just adds a quick registry check for EnableHexNumpad.

Depends on #17774
Closes #17762 (again)

Validation Steps Performed

  • Alt + NumpadAdd + 221E doesn't do anything ✅
  • Set the EnableHexNumpad registry key
  • Restart
  • Alt + NumpadAdd + 221E inserts ∞ ✅

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Input Related to input processing (key presses, mouse, etc.) Product-Terminal The new Windows Terminal. labels Sep 23, 2024
nullptr,
&buffer[0],
&size);
return size == 4 && memcmp(&buffer[0], L"1", 4) == 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my gosh, it's actually a string? wild

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use any of the wil registry helpers here? or is that just overhead.

things like wil::reg::try_get_value<string> and co

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't. It's trivial code like this. I could replace the check with a wcsnlen though...

@DHowett DHowett merged commit b520da2 into main Sep 24, 2024
20 checks passed
@DHowett DHowett deleted the dev/lhecker/17762-part2 branch September 24, 2024 18:56
DHowett pushed a commit that referenced this pull request Sep 24, 2024
This just adds a quick registry check for `EnableHexNumpad`.

Depends on #17774
Closes #17762 (again)

## Validation Steps Performed
* Alt + NumpadAdd + 221E doesn't do anything ✅
* Set the `EnableHexNumpad` registry key
* Restart
* Alt + NumpadAdd + 221E inserts ∞ ✅

(cherry picked from commit b520da2)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgTQsd8
Service-Version: 1.21
DHowett pushed a commit that referenced this pull request Sep 24, 2024
This just adds a quick registry check for `EnableHexNumpad`.

Depends on #17774
Closes #17762 (again)

## Validation Steps Performed
* Alt + NumpadAdd + 221E doesn't do anything ✅
* Set the `EnableHexNumpad` registry key
* Restart
* Alt + NumpadAdd + 221E inserts ∞ ✅

(cherry picked from commit b520da2)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgTQseA
Service-Version: 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
Development

Successfully merging this pull request may close these issues.

CANARY: ALT+NUMPAD ADD is Broken
3 participants