1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Rearrange keydown event handling

This commit is contained in:
Dmitry Lyzo 2020-06-28 23:46:27 +03:00
parent 39b412bb06
commit 62a2f4b17d
3 changed files with 16 additions and 4 deletions

View file

@ -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