Skip to content

Commit a0b302f

Browse files
committed
🚧 enable keyboard shortcuts on mobile
1 parent fac3f96 commit a0b302f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

client/modules/IDE/pages/MobileIDEView.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const isUserOwner = ({ project, user }) =>
7575

7676
// TODO: This could go into <Editor />
7777
const handleGlobalKeydown = (props, cmController) => (e) => {
78-
alert('haha');
7978
const {
8079
user, project, ide,
8180
setAllAccessibleOutput,

client/utils/custom-hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ export const useEffectWithComparison = (fn, props) => {
5555

5656
export const useEventListener = (event, callback, useCapture = false) => useEffect(() => {
5757
document.addEventListener(event, callback, useCapture);
58-
return document.removeEventListener(event, callback, useCapture);
58+
return () => document.removeEventListener(event, callback, useCapture);
5959
}, []);

0 commit comments

Comments
 (0)