Skip to content

Commit 277d60a

Browse files
committed
fix: try to fix the keyboard shortcuts do not work sometimes
1 parent b1bf9a3 commit 277d60a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/ui/hooks/keyboard.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,6 @@ export const makeKeyboard = ({ app }: { app: Apps }) => {
135135
useEffect(() => {
136136
el.addEventListener('keydown', keydownHander)
137137
el.addEventListener('keyup', keyupHandler)
138-
139-
return () => {
140-
el.removeEventListener('keydown', keydownHander)
141-
el.removeEventListener('keyup', keyupHandler)
142-
}
143138
}, [])
144139
}
145140

0 commit comments

Comments
 (0)