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

Ignore modified hotkeys

This commit is contained in:
Dmitry Lyzo 2024-09-10 03:53:43 +03:00
parent b2676c1633
commit 3025e9bf48
5 changed files with 80 additions and 40 deletions

View file

@ -131,6 +131,9 @@ export class BookPlayer {
}
onWindowKeyDown(e) {
// Skip modified keys
if (e.ctrlKey || e.altKey || e.metaKey || e.shiftKey) return;
const key = keyboardnavigation.getKeyName(e);
if (!this.loaded) return;

View file

@ -178,6 +178,9 @@ export class ComicsPlayer {
}
onWindowKeyDown(e) {
// Skip modified keys
if (e.ctrlKey || e.altKey || e.metaKey || e.shiftKey) return;
const key = keyboardnavigation.getKeyName(e);
if (key === 'Escape') {
e.preventDefault();

View file

@ -91,6 +91,9 @@ export class PdfPlayer {
onWindowKeyDown(e) {
if (!this.loaded) return;
// Skip modified keys
if (e.ctrlKey || e.altKey || e.metaKey || e.shiftKey) return;
const key = keyboardnavigation.getKeyName(e);
switch (key) {