From: Vincent Vanwaelscappel Date: Thu, 1 Aug 2024 08:11:24 +0000 (+0200) Subject: wait #7030 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7b5493acc9c09dabd496eae648dedb49ffd4da53;p=fluidbook-html5.git wait #7030 @0.25 --- diff --git a/js/libs/fluidbook/fluidbook.contentlock.js b/js/libs/fluidbook/fluidbook.contentlock.js index cac0e378..74547bb9 100644 --- a/js/libs/fluidbook/fluidbook.contentlock.js +++ b/js/libs/fluidbook/fluidbook.contentlock.js @@ -9,11 +9,14 @@ FluidbookContentLock.prototype = { init: function () { var $this = this; + this.fluidbook.keyboard.keyShortcut('⌘+u, ctrl+u', function () { + $this.unlockCurrentPage(); + }); + this.fluidbook.keyboard.keyShortcut('⌘+alt+u, ctrl+alt+u', function () { $this.setMaxPage(); }); - this.maxPage = Math.min(this.getNextLockPage(), this.fluidbook.settings.pages); if (!this.fluidbook.scorm.isActive() && this.fluidbook.cache.isset('lock_maxpage')) { var mp = parseInt(this.fluidbook.cache.get('lock_maxpage'));