Commit 108152c
committed
feat: add global focus shortcut for chat input
Introduce global `a` and `i` keybinds that focus the chat input when
no editable element is active.
Move focus to the textarea with caret at the end and resize
height to match content.
Update escape handling to blur the input when interrupting or
editing does not consume the shortcut, and document the new
shortcuts in the keybinds reference.1 parent e45ea88 commit 108152c
File tree
3 files changed
+55
-7
lines changed- docs
- src
- components
- utils/ui
3 files changed
+55
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
335 | 376 | | |
336 | 377 | | |
337 | 378 | | |
| |||
593 | 634 | | |
594 | 635 | | |
595 | 636 | | |
| 637 | + | |
596 | 638 | | |
597 | 639 | | |
598 | 640 | | |
599 | 641 | | |
600 | 642 | | |
601 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
602 | 646 | | |
603 | 647 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 648 | + | |
| 649 | + | |
609 | 650 | | |
610 | 651 | | |
611 | 652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
0 commit comments