[PR #17774] During Alt+Numpad composition, stash keys in case we bail out #31364

Open
opened 2026-01-31 09:46:48 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17774

State: closed
Merged: Yes


We were erroneously eating Alt followed by VK_ADD. This change makes sure we cache key presses and releases that happen once a numpad composition is active so that we can send them when you release Alt.

Right now, we only send them when you release Alt after composing Alt and VK_ADD (entering hex mode) and only if you haven't inserted an actual hex numpad code. This does mean that Alt VK_ADD 0 0 H I will result in an input of "+hi". That... seems like a small price to pay for Alt VK_ADD working again.

Closes #17762

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17774 **State:** closed **Merged:** Yes --- We were erroneously eating Alt followed by VK_ADD. This change makes sure we cache key presses and releases that happen once a numpad composition is active so that we can send them when you release Alt. Right now, we only send them when you release Alt after composing Alt and VK_ADD (entering hex mode) and only if you haven't inserted an actual hex numpad code. This does mean that `Alt VK_ADD 0 0 H I` will result in an input of "+hi". That... seems like a small price to pay for Alt VK_ADD working again. Closes #17762
claunia added the pull-request label 2026-01-31 09:46:48 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31364