diff --git a/src/App.tsx b/src/App.tsx index a4969e0d..dcceb6ef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -335,9 +335,9 @@ function Home() { } }; - window.addEventListener("keydown", handleKeyDown); + window.addEventListener("keydown", handleKeyDown, true); return () => { - window.removeEventListener("keydown", handleKeyDown); + window.removeEventListener("keydown", handleKeyDown, true); }; }, [ activeHomeTab, @@ -437,14 +437,16 @@ function Home() { className="relative z-0 h-auto w-full gap-0 p-0" > Work Travel @@ -468,8 +470,9 @@ function Home() { {locations.map((location, index) => (