We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b445ec7 commit 8f436f1Copy full SHA for 8f436f1
1 file changed
src/TTX.Web/routes/(_islands)/Search.tsx
@@ -73,6 +73,13 @@ export default function SearchModal(
73
74
function handleKeydown(event: KeyboardEvent) {
75
const items = result.value.length > 0 ? result.value : recent;
76
+
77
+ if (event.key === "Escape") {
78
+ event.preventDefault();
79
+ close();
80
+ return;
81
+ }
82
83
if (!items.length) return;
84
85
switch (event.key) {
0 commit comments