mirror of
https://github.com/manilarome/the-glorious-startpage.git
synced 2025-01-07 13:58:54 +01:00
keybinding finish question mark?? cleanup
This commit is contained in:
parent
76e2221c89
commit
1fdb3b7ffe
@ -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; };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user