fix(cocoa): the Delete key reports Key.Backspace (8)
AppKit gives kVK_Delete (51) the character NSDeleteCharacter, 127, which is what both ev_keyval (the held-key set) and win_poll (the per-frame key) received, so Key.Backspace, which folds to 8, never matched. Both now map key code 51 to 8. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
09247c57cf
commit
885943e73f
2 changed files with 13 additions and 0 deletions
7
changes/backspace-key.md
Normal file
7
changes/backspace-key.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
bump: patch
|
||||
type: fix
|
||||
**Backspace fires on macOS** — the Delete key reports `Key.Backspace` (8).
|
||||
|
||||
AppKit gives the key marked delete (kVK_Delete, 51) the character `NSDeleteCharacter`, 127,
|
||||
which is what both the held-key set and the per-frame key received, so `Key.Backspace` never
|
||||
matched. `cocoa.ll` maps key code 51 to 8 in both.
|
||||
Loading…
Add table
Add a link
Reference in a new issue