Skip to content

Commit 972090c

Browse files
authored
Only focus search when no shiftKey
When using Ctrl/Cmd+Shift+k in repl/tutorial you expect the current line to be removed, instead search in the nav-bar is focused. This change should fix that.
1 parent 0dd78c6 commit 972090c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/site-kit/src/lib/search/SearchBox.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
127127

128128
<svelte:window
129129
onkeydown={(e) => {
130-
if (e.key === 'k' && (navigator.platform === 'MacIntel' ? e.metaKey : e.ctrlKey)) {
130+
if (e.key === 'k' && !e.shiftKey && (navigator.platform === 'MacIntel' ? e.metaKey : e.ctrlKey)) {
131131
e.preventDefault();
132132
search.query = '';
133133

0 commit comments

Comments
 (0)