refactor(app): make keyboard shortcuts declarative and separate Cmd/Ctrl per platform

Replace imperative matches/when functions with declarative KeyCombo and
ShortcutWhen data structures, laying groundwork for a future rebinding UI.

Split all isMod (metaKey || ctrlKey) bindings into explicit platform pairs:
- Mac: Cmd (meta) only — Ctrl is never intercepted, passes through to terminal
- Linux/Windows: Ctrl — disabled when terminal is focused so Ctrl+W, Ctrl+K,
  etc. reach vim/shell
This commit is contained in:
Mohamed Boudra
2026-03-21 14:29:37 +07:00
parent 78fc1fe862
commit e6bc752b68
2 changed files with 746 additions and 664 deletions
File diff suppressed because it is too large Load Diff