master #50
|
@ -29,6 +29,8 @@
|
|||
};
|
||||
document.addEventListener("keydown", e => {
|
||||
if(e.key in keybindings && e.target.tagName !== "INPUT") {
|
||||
if(e.shiftKey || e.ctrlKey || e.metaKey || e.altKey)
|
||||
return;
|
||||
e.preventDefault();
|
||||
keybindings[e.key]();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user