Skip to content

Commit 191f349

Browse files
authored
feat: add useEscape and useModifierKeyPress hooks (#445)
1 parent f876fc2 commit 191f349

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/pages/web/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { useIsMobile } from "@/hooks/useIsMobile";
77

88
import "@/i18n";
99
import "@/web.css";
10+
import { useModifierKeyPress } from "@/hooks/useModifierKeyPress";
11+
import useEscape from "@/hooks/useEscape";
1012

1113
interface WebAppProps {
1214
headers?: Record<string, unknown>;
@@ -67,6 +69,10 @@ function WebApp({
6769

6870
const [isChatMode, setIsChatMode] = useState(false);
6971

72+
useEscape();
73+
74+
useModifierKeyPress();
75+
7076
return (
7177
<div
7278
id="searchChat-container"

0 commit comments

Comments
 (0)