mirror of
https://git.proxmox.com/git/mirror_novnc
synced 2025-08-15 06:03:08 +00:00
Make the touch-keyboard code more robust through verifying that global variables are set before use.
This commit is contained in:
parent
205d1a11ce
commit
3b8ec46fd2
@ -925,8 +925,15 @@ var UI;
|
||||
// This code is required since some browsers on Android are inconsistent in
|
||||
// sending keyCodes in the normal keyboard events when using on screen keyboards.
|
||||
keyInput: function(event) {
|
||||
|
||||
if (!UI.rfb) { return; }
|
||||
|
||||
var newValue = event.target.value;
|
||||
var oldValue = UI.lastKeyboardinput;
|
||||
|
||||
if (!UI.lastKeyboardinput) {
|
||||
UI.keyboardinputReset();
|
||||
}
|
||||
var oldvalue = UI.lastKeyboardinput;
|
||||
|
||||
var newLen;
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user