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

Apply suggestions from code review

This commit is contained in:
Dmitry Lyzo 2019-11-18 17:31:09 +03:00
parent 8df85172cb
commit 6348367711
2 changed files with 4 additions and 4 deletions

View file

@ -1083,11 +1083,13 @@ define(["playbackManager", "dom", "inputManager", "datetime", "itemHelper", "med
function onWindowKeyDown(e) {
if (!currentVisibleMenu && 32 === e.keyCode) {
playbackManager.playPause(currentPlayer);
return void showOsd();
showOsd();
return;
}
if (layoutManager.tv && NavigationKeys.indexOf(e.key) != -1) {
return void showOsd();
showOsd();
return;
}
switch (e.key) {