From: Vincent Vanwaelscappel Date: Tue, 7 Oct 2025 16:17:17 +0000 (+0200) Subject: wait #7741 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=31f046b9037fa4efd5b82ba60870bbb89925212c;p=fluidbook-html5.git wait #7741 @0.5 --- 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) { + + } }); });