mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-02 21:36:11 +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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue