Attempt to change the behavior of the enter/go-key on touch devices, we want it to be Enter.
* This code works in Firefox on Android and on Chrome and Safari on iOS. * It does not work in Chrome on Android, the enter key is labled "Go" and closes the on screen keyboard when pressed.
This commit is contained in:
parent
74d3d75a4a
commit
de8edde4a0
7
vnc.html
7
vnc.html
|
@ -64,8 +64,13 @@
|
||||||
<input type="image" alt="Keyboard" src="images/keyboard.png"
|
<input type="image" alt="Keyboard" src="images/keyboard.png"
|
||||||
id="showKeyboard" class="noVNC_status_button"
|
id="showKeyboard" class="noVNC_status_button"
|
||||||
value="Keyboard" title="Show Keyboard"/>
|
value="Keyboard" title="Show Keyboard"/>
|
||||||
|
<!-- There is a problem with the "Enter"-key on Android in Chrome,
|
||||||
|
when pressed the on screen keyboard is closed, this could be
|
||||||
|
fixed if Chrome implemented the ime-mode style for example -->
|
||||||
<input type="password" id="keyboardinput" autocapitalize="off"
|
<input type="password" id="keyboardinput" autocapitalize="off"
|
||||||
autocorrect="off" autocomplete="off" spellcheck="false">
|
autocorrect="off" autocomplete="off" spellcheck="false"
|
||||||
|
mozactionhint="Enter" onsubmit="return false;"
|
||||||
|
style="ime-mode: disabled;">
|
||||||
<div id="noVNC_extra_keys">
|
<div id="noVNC_extra_keys">
|
||||||
<input type="image" alt="Extra keys" src="images/showextrakeys.png"
|
<input type="image" alt="Extra keys" src="images/showextrakeys.png"
|
||||||
id="showExtraKeysButton" class="noVNC_status_button">
|
id="showExtraKeysButton" class="noVNC_status_button">
|
||||||
|
|
Loading…
Reference in New Issue