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

Merge pull request #1697 from cyrusboadway/ctrlandalt

Skip number key navigation when key is modified with alt/ctrl
This commit is contained in:
dkanada 2020-07-31 04:26:26 +09:00 committed by GitHub
commit 8f80b30d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1131,6 +1131,7 @@ import 'css!assets/css/videoosd';
clickedElement = e.target;
const key = keyboardnavigation.getKeyName(e);
const isKeyModified = e.ctrlKey || e.altKey;
if (!currentVisibleMenu && 32 === e.keyCode) {
playbackManager.playPause(currentPlayer);
@ -1235,8 +1236,10 @@ import 'css!assets/css/videoosd';
case '7':
case '8':
case '9': {
const percent = parseInt(key, 10) * 10;
playbackManager.seekPercent(percent, currentPlayer);
if (!isKeyModified) {
const percent = parseInt(key, 10) * 10;
playbackManager.seekPercent(percent, currentPlayer);
}
break;
}
}