Commit 41f1c16
authored
feat: add F1 key to toggle help overlay (#101)
## Summary
- Add F1 as an additional key binding (alongside ?) to toggle the
floating help menu
- Esc, q, and ctrl+c close the help overlay instead of quitting when
it's open
- Block all other keys while the help overlay is visible
- Update footer hint from "? help" to "F1/? help"
## Test plan
- [x] Press F1 to open help overlay
- [x] Press F1 again to close it
- [x] Press ? to toggle help (still works)
- [x] Press Esc to close help overlay
- [x] Press q while help is open — should close overlay, not quit
- [x] Press q while help is closed — should quit
- [x] Press other keys while help is open — should be blocked1 parent 2898ff7 commit 41f1c16
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | 133 | | |
136 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
| |||
471 | 478 | | |
472 | 479 | | |
473 | 480 | | |
474 | | - | |
| 481 | + | |
475 | 482 | | |
476 | 483 | | |
477 | 484 | | |
| |||
0 commit comments