-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Fix dwControlKeyState always including ENHANCED_KEY #16335
Conversation
/cc @j4james for this one 😄 |
I hate this. If it were up to me I would reject this PR. |
I removed |
240bfb0
to
9c50a03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. This is curious to me, because that line of code dates back to like, 2018:
https://github.com/microsoft/terminal/blame/2e26c3e0c958f174d838049ce43cbb7dc52eb7e8/src/terminal/parser/InputStateMachineEngine.cpp#L733
So, I wouldn't really expect it to be a recent regression... But if it works, it works.
(is the current description up-to-date? I think that confused me here) |
FYI, the reason why it wasn't a problem initially is because that state wasn't actually used anywhere until the change made here: |
Since all VT parameters are treated to be at least 1 (and 1 if they're absent or 0), `modifierParam > 0` was always true. This meant that `ENHANCED_KEY` was always being set. It's unclear why `ENHANCED_KEY` was used there, but it's likely not needed in general. Closes #16266 ## Validation Steps Performed * Can't test this unless we fix the win32 input mode issue #16343 ❌ (cherry picked from commit be9fc20) Service-Card-Id: 91159301 Service-Version: 1.19
Since all VT parameters are treated to be at least 1 (and 1 if they're
absent or 0),
modifierParam > 0
was always true. This meant thatENHANCED_KEY
was always being set. It's unclear whyENHANCED_KEY
was used there, but it's likely not needed in general.
Closes #16266
Validation Steps Performed