Skip to content

fix(input): pick held-key choices with Alt on keyboards without number keys (#969) - #991

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/physical-choice-alt-digit
Nov 28, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/physical-choice-alt-digit

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Reported in #969 (Titan 2 Elite, beta6): holding a physical key shows the choices and tapping works, but Alt + number does not pick one.

Likely cause: the shortcut only matched KEYCODE_1..9. Without number keys, Alt + letter keeps the letter key code and only types a digit through the key character map.

  • While held-key choices are shown, Alt plus a key that types 1-9 picks that choice (shortcut setting "alt" or "number")
  • Repeats of the shortcut after a pick are swallowed
  • Otherwise Alt keeps typing digits, also during normal suggestions

Tested: ParserTest (63 pass, one new for the shortcut matching). The key event handling itself and a real physical keyboard are not tested.

https://claude.ai/code/session_017YwBxS1AFMMTMRfvDSKqCR

…r keys (#969)

Keyboards like the Titan 2 Elite type digits with Alt, so the selection
shortcut arrives with a letter key code. While the choices of a held
physical key are shown, also accept Alt plus a key that types 1-9.

Claude-Session: https://claude.ai/code/session_017YwBxS1AFMMTMRfvDSKqCR
@LeanBitLab
LeanBitLab merged commit 22b3d37 into main Nov 28, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/physical-choice-alt-digit branch November 28, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant