From 31f046b9037fa4efd5b82ba60870bbb89925212c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 7 Oct 2025 18:17:17 +0200 Subject: [PATCH] wait #7741 @0.5 --- js/libs/fluidbook/fluidbook.keyboard.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.keyboard.js b/js/libs/fluidbook/fluidbook.keyboard.js index 9a1ebb41..ccc8d673 100644 --- a/js/libs/fluidbook/fluidbook.keyboard.js +++ b/js/libs/fluidbook/fluidbook.keyboard.js @@ -105,12 +105,16 @@ FluidbookKeyboard.prototype = { let iframe = $(this); $(this).on('load', function () { let win = $(iframe).get(0).contentWindow; - let doc = win.document; - doc.addEventListener('keydown', function (e) { - if (e.code === 'Escape') { - $this.escape(); - } - }); + try { + let doc = win.document; + doc.addEventListener('keydown', function (e) { + if (e.code === 'Escape') { + $this.escape(); + } + }); + } catch (e) { + + } }); }); -- 2.39.5