🚧 enable keyboard shortcuts on mobile
This commit is contained in:
parent
fac3f96072
commit
a0b302fdcd
2 changed files with 1 additions and 2 deletions
|
@ -75,7 +75,6 @@ const isUserOwner = ({ project, user }) =>
|
||||||
|
|
||||||
// TODO: This could go into <Editor />
|
// TODO: This could go into <Editor />
|
||||||
const handleGlobalKeydown = (props, cmController) => (e) => {
|
const handleGlobalKeydown = (props, cmController) => (e) => {
|
||||||
alert('haha');
|
|
||||||
const {
|
const {
|
||||||
user, project, ide,
|
user, project, ide,
|
||||||
setAllAccessibleOutput,
|
setAllAccessibleOutput,
|
||||||
|
|
|
@ -55,5 +55,5 @@ export const useEffectWithComparison = (fn, props) => {
|
||||||
|
|
||||||
export const useEventListener = (event, callback, useCapture = false) => useEffect(() => {
|
export const useEventListener = (event, callback, useCapture = false) => useEffect(() => {
|
||||||
document.addEventListener(event, callback, useCapture);
|
document.addEventListener(event, callback, useCapture);
|
||||||
return document.removeEventListener(event, callback, useCapture);
|
return () => document.removeEventListener(event, callback, useCapture);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
Loading…
Reference in a new issue