Skip to content

Commit e78cb03

Browse files
authored
Change Search Box escape key from e.code to e.key (#741)
Update SearchBox.svelte
1 parent 2c14802 commit e78cb03

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
@@ -136,7 +136,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
136136
}
137137
}
138138

139-
if (e.code === 'Escape') {
139+
if (e.key === 'Escape') {
140140
close();
141141
}
142142
}}

0 commit comments

Comments
 (0)