Explorar o código

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.

samhed %!s(int64=11) %!d(string=hai) anos
pai
achega
de8edde4a0
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      vnc.html

+ 6 - 1
vnc.html

@@ -64,8 +64,13 @@
                 <input type="image" alt="Keyboard" src="images/keyboard.png"
                     id="showKeyboard" class="noVNC_status_button"
                     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"
-                    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">
                     <input type="image" alt="Extra keys" src="images/showextrakeys.png"
                         id="showExtraKeysButton" class="noVNC_status_button">