Commit 774ffe2
feat(terminal): add Cmd+Arrow and Shift+Enter keyboard shortcuts (#39)
* feat(terminal): add Cmd+Arrow and Shift+Enter keyboard shortcuts
- Cmd+Left/Right sends Home/End escape sequences (macOS)
- Shift+Enter sends Alt+Enter for multi-line input in CLI agents
* fix(terminal): add preventDefault to Cmd+Arrow, restrict to macOS only
- Add e.preventDefault() to Cmd+Left/Right to prevent Electron
browser-level back-navigation
- Restrict Cmd+Arrow → Home/End to macOS only since Ctrl+Arrow
is word-jump on Linux
- Add comment explaining Shift+Enter keyup suppression
* fix(terminal): tighten modifier guards for keyboard shortcuts
- Shift+Enter: exclude Cmd/Ctrl/Alt so compound combos pass through
- Cmd+Arrow: exclude Shift to not intercept Cmd+Shift+Arrow selection
---------
Co-authored-by: maskar <Maskar@users.noreply.github.com>
Co-authored-by: Johannes Millan <johannes.millan@gmail.com>1 parent 38a16b5 commit 774ffe2
1 file changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
200 | 225 | | |
201 | 226 | | |
202 | 227 | | |
| |||
0 commit comments