Repository navigation
Commit ceca0e2
committed
fix(app): skip key handlers during IME composition in question dock
The custom answer textarea in SessionQuestionDock submits on Enter without
checking whether the browser is in an IME composition session. This causes
CJK users' composition-confirm Enter to be treated as a form submit.
Add the standard isComposing/keyCode-229 early return to both the textarea
onKeyDown and the parent nav handler, matching the pattern already used in
prompt-input.tsx and line-comment.tsx.
Closes anomalyco#208501 parent 500dcfc commit ceca0e2
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
| 547 | + | |
546 | 548 | | |
547 | 549 | | |
548 | 550 | | |
| |||
0 commit comments