Rearrange keydown event handling
This commit is contained in:
parent
39b412bb06
commit
62a2f4b17d
3 changed files with 16 additions and 4 deletions
|
@ -78,7 +78,7 @@ export function isNavigationKey(key) {
|
|||
}
|
||||
|
||||
export function enable() {
|
||||
document.addEventListener('keydown', function (e) {
|
||||
window.addEventListener('keydown', function (e) {
|
||||
const key = getKeyName(e);
|
||||
|
||||
// Ignore navigation keys for non-TV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue