Repository navigation
Commit cfad872
committed
fix(web-ui): let the '@' reference picker own its keys while open
The picker is an overlay layer, so the overlay coordinator routes its
keyboard from the document after the React handlers run. The composer key
handler therefore consumed ArrowDown as history navigation and Enter as
send before the picker could move or accept a row, which left the list
reachable by ArrowUp only and made Enter submit the draft.
Release the keys the picker owns while it is open instead of relying on
event order, and keep the composer path for every other key.1 parent af4c657 commit cfad872
3 files changed
Lines changed: 53 additions & 1 deletion
File tree
- src/web-ui/src/flow_chat
- components
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
5619 | 5620 | | |
5620 | 5621 | | |
5621 | 5622 | | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
5622 | 5629 | | |
5623 | 5630 | | |
5624 | 5631 | | |
| |||
5813 | 5820 | | |
5814 | 5821 | | |
5815 | 5822 | | |
5816 | | - | |
| 5823 | + | |
5817 | 5824 | | |
5818 | 5825 | | |
5819 | 5826 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments