]> _ Git - fluidbook-html5.git/commitdiff
wip #7462 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 May 2025 13:21:12 +0000 (15:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 May 2025 13:21:12 +0000 (15:21 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 0465cf8403d125fdac9ae80a557d71a03b0d2c4b..cc6cf39c00cfabe96e6472ef9586806df754461c 100644 (file)
@@ -206,7 +206,10 @@ FluidbookMenu.prototype = {
             }
 
             if ($this.fluidbook.input.usingKeyboard) {
-                $("#view .button.back").get(0).focus();
+                let back = $("#view .button.back");
+                if ($(back).length > 0) {
+                    $(back).get(0).focus();
+                }
             }
 
             $this.fluidbook.hideLoader();