keybinding finish question mark?? cleanup

This commit is contained in:
Gerome Matilla 2020-06-04 15:19:27 +08:00
parent 76e2221c89
commit 1fdb3b7ffe

View File

@ -1,7 +1,5 @@
let keysPressed = {}; let keysPressed = {};
document.addEventListener( document.addEventListener(
'keydown', 'keydown',
(event) => { (event) => {
@ -44,7 +42,6 @@ document.addEventListener(
// and weather screen is open // and weather screen is open
if (webMenuVisibility || weatherScreenVisibility || if (webMenuVisibility || weatherScreenVisibility ||
rightDashboardVisibility) return; rightDashboardVisibility) return;
// Dont accept ctrl, alt, // Dont accept ctrl, alt,
// left window key, f5, f12, return // left window key, f5, f12, return
@ -67,8 +64,6 @@ document.addEventListener(
if ((event.key === 'Backspace' || event.key === 'Enter') && if ((event.key === 'Backspace' || event.key === 'Enter') &&
searchBox.value < 1) { toggleSearchBox(); return; }; searchBox.value < 1) { toggleSearchBox(); return; };
} }
} }
); );