From d20c617d30a2600b76cd445e3f28a4005ceba7c9 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sat, 14 Sep 2024 01:49:02 +0300 Subject: [PATCH] Quit immediately if not ready --- src/plugins/pdfPlayer/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/pdfPlayer/plugin.js b/src/plugins/pdfPlayer/plugin.js index 0a7d203415..f138125e82 100644 --- a/src/plugins/pdfPlayer/plugin.js +++ b/src/plugins/pdfPlayer/plugin.js @@ -89,9 +89,10 @@ export class PdfPlayer { } onWindowKeyUp(e) { + if (!this.loaded) return; + const key = keyboardnavigation.getKeyName(e); - if (!this.loaded) return; switch (key) { case 'l': case 'ArrowRight':