mirror of
https://github.com/st3fan/ewm.git
synced 2026-10-25 02:02:15 +00:00
Cmd-Esc never reaches the emulator on macOS: AppKit offers every Cmd-combo around as a key equivalent before it can become a keyDown, and Escape is claimed by Cocoa's cancelOperation: handling — the event dies before SDL's queue exists. Confirmed with the new --debug key logging: plain Esc arrives (keycode 27, NOMOD), Cmd-Return arrives (LGUIMOD), Cmd-Esc produces nothing. The C had the same binding on the same SDL and was equally broken on macOS. Reset is now Cmd-R in both frontends; Cmd-letter combos are reliably delivered (Cmd-I and Cmd-P already depend on that). Plain Escape still reaches the machine as $1B. The --debug flag now also logs KeyDown events (keycode/scancode/keymod), which is how this was diagnosed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>