mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 15:21:17 -05:00
4b41c5b99d
With the claimed-digit fix in craft-libs, a keypad digit types its Alt code also when the Type tool claims Alt with that digit: Alt with keypad 0233 types é while type is edited, and Alt with the top-row 2 still types ™. Every craft-libs rev is pinned to that fix's head, 12b6fa3c27. The pinned winit reports the character Windows composes for an Alt code as a key press after Alt's release, and egui types it. The Windows hook also typed the WM_CHAR that follows Alt's release, so each code typed its character twice. The hook now only takes the keypad digits out of the frame and tells the framework the Alt hold had digits typed in it. egui reports a keypad digit as the same logical key as the top-row digit, so the hook matches the keypad digits it takes out by their physical keys (Numpad0 to Numpad9, with NumLock on or off). A top-row Alt and digit in the same frame stays in the frame for the shortcuts.