mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add error handling to command processor in inputManager
This commit is contained in:
parent
77d8226dd3
commit
33855a655f
1 changed files with 6 additions and 2 deletions
|
@ -100,7 +100,7 @@ import appHost from 'apphost';
|
||||||
focusManager.moveLeft(sourceElement);
|
focusManager.moveLeft(sourceElement);
|
||||||
},
|
},
|
||||||
'right': () => {
|
'right': () => {
|
||||||
focusManager.moveRight(sourceElement)
|
focusManager.moveRight(sourceElement);
|
||||||
},
|
},
|
||||||
'home': () => {
|
'home': () => {
|
||||||
appRouter.goHome();
|
appRouter.goHome();
|
||||||
|
@ -227,7 +227,11 @@ import appHost from 'apphost';
|
||||||
}
|
}
|
||||||
})[command];
|
})[command];
|
||||||
|
|
||||||
keyActions(commandName).call();
|
try {
|
||||||
|
keyActions(commandName).call();
|
||||||
|
} catch (error) {
|
||||||
|
console.debug(`inputManager: tried to process command with no action assigned: ${commandName}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dom.addEventListener(document, 'click', notify, {
|
dom.addEventListener(document, 'click', notify, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue