Ignore modified hotkeys
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user