Commit 9694686
fix(cmdk): Restrict shiftKey modifier to Enter key only
Shift+Tab is a standard reverse-tab navigation gesture, not an
"open in new tab" signal. Previously, both Enter and Tab forwarded
e.shiftKey to onActionSelection, so Shift+Tab incorrectly triggered
window.open instead of navigate in the modal handler.
Now shiftKey is only forwarded when the triggering key is Enter.
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>1 parent 12d0610 commit 9694686
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
359 | 361 | | |
360 | | - | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| |||
0 commit comments