Skip to content

Commit a1f5189

Browse files
author
Alex Patterson
authored
Merge pull request CodingCatDev#206 from CodingCatDev/dev
Dev merge to main
2 parents b36788d + a5b4e12 commit a1f5189

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

frontend/main/src/components/algolia/SearchModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ export default function SearchModal(): JSX.Element {
1313
};
1414

1515
const escFunction = useCallback((e) => {
16-
e.preventDefault();
1716
if (e.keyCode === 27) {
1817
setShow(false);
1918
}
2019
}, []);
2120

2221
const cmdKFunction = useCallback((e) => {
23-
e.preventDefault();
2422
if ((e.metaKey || e.ctrlKey) && e.code === 'KeyK') {
2523
setShow(true);
2624
}

0 commit comments

Comments
 (0)