@panoramax/web-viewer 4.3.1-develop-e3b03c0c → 4.3.1-develop-61d5b28c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -422,6 +422,12 @@ export default class PhotoViewer extends Basic {
|
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
+
// Skip if popup is opened
|
|
426
|
+
if(this.popup.getAttribute("visible") !== null) {
|
|
427
|
+
this._disableKeyboard();
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
|
|
425
431
|
this._enableKeyboard();
|
|
426
432
|
}
|
|
427
433
|
else {
|
|
@@ -406,30 +406,6 @@ export default class Viewer extends PhotoViewer {
|
|
|
406
406
|
this.map.keyboard.disable();
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
/** @private */
|
|
410
|
-
_toggleKeyboardBasedOnFocus(e) {
|
|
411
|
-
const target = e?.target || document.activeElement;
|
|
412
|
-
if(this.contains(target)) {
|
|
413
|
-
// Check if focus is not in a widget
|
|
414
|
-
for(let cn of this.grid.childNodes) {
|
|
415
|
-
if(
|
|
416
|
-
cn.getAttribute("slot") !== "bg"
|
|
417
|
-
&& !KEYBOARD_SKIP_FOCUS_WIDGETS.includes(cn.tagName.toLowerCase())
|
|
418
|
-
) {
|
|
419
|
-
if(cn.contains(target)) {
|
|
420
|
-
this._disableKeyboard();
|
|
421
|
-
return;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
this._enableKeyboard();
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
this._disableKeyboard();
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
409
|
/** @private */
|
|
434
410
|
_handleKeyboardManagement() {
|
|
435
411
|
// General
|