Make hotkeys work again (#1819)
This commit is contained in:
1 parent
c52c4f7d32
commit
c4abe39375
40 files changed
+182
-39
No files matched your search
@@ -30,3 +30,8 @@ export const onEnterOrSpace = (callback: () => void) => (evt: KeyboardEventLike)
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
export const stopPropagation = (evt: KeyboardEvent): boolean => {
|
||||
evt.stopPropagation();
|
||||
return true;
|
||||
};
|
||||
Reference in new issue
Block a user