mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
Prevent mobile keyboard from opening
Adds readonly property to .keyboard-command-area to prevent input, but allow keys to be captured.
This commit is contained in:
parent
69e9326d4f
commit
6e49f80248
@ -300,6 +300,8 @@ $.Viewer = function( options ) {
|
||||
style.left = "0px";
|
||||
style.resize = "none";
|
||||
}( this.keyboardCommandArea.style ));
|
||||
// Set read-only - hides keyboard on mobile devices, still allows input.
|
||||
this.keyboardCommandArea.readOnly = true;
|
||||
|
||||
this.container.insertBefore( this.canvas, this.container.firstChild );
|
||||
this.container.insertBefore( this.keyboardCommandArea, this.container.firstChild );
|
||||
|
Loading…
x
Reference in New Issue
Block a user