mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 08:42:48 +00:00
toggle active flag in KeyboardNavigation
This commit is contained in:
parent
f7856d09e9
commit
b83397a25e
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ function KeyboardNavigation() {
|
|||
}
|
||||
|
||||
window.addEventListener('keydown', onKeyDown);
|
||||
active = true;
|
||||
}
|
||||
function stop() {
|
||||
if (!active) {
|
||||
|
|
@ -28,6 +29,7 @@ function KeyboardNavigation() {
|
|||
}
|
||||
|
||||
window.removeEventListener('keydown', onKeyDown);
|
||||
active = false;
|
||||
}
|
||||
|
||||
Object.defineProperties(this, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue