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:
Adam Carruthers 2014-12-22 20:29:44 -07:00
parent 69e9326d4f
commit 6e49f80248

View File

@ -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 );