🚧 enable keyboard shortcuts on mobile

This commit is contained in:
ghalestrilo 2020-08-13 18:34:35 -03:00
parent fac3f96072
commit a0b302fdcd
2 changed files with 1 additions and 2 deletions

View File

@ -75,7 +75,6 @@ const isUserOwner = ({ project, user }) =>
// TODO: This could go into <Editor />
const handleGlobalKeydown = (props, cmController) => (e) => {
alert('haha');
const {
user, project, ide,
setAllAccessibleOutput,

View File

@ -55,5 +55,5 @@ export const useEffectWithComparison = (fn, props) => {
export const useEventListener = (event, callback, useCapture = false) => useEffect(() => {
document.addEventListener(event, callback, useCapture);
return document.removeEventListener(event, callback, useCapture);
return () => document.removeEventListener(event, callback, useCapture);
}, []);