mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-03 10:59:39 +00:00
Don't send Unicode to RFB.sendKey()
The argument must be a Keysym, not a Unicode codepoint.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
/* [module]
|
||||
* import Util from "../core/util";
|
||||
* import KeyTable from "../core/input/keysym";
|
||||
* import keysyms from "./keysymdef";
|
||||
* import RFB from "../core/rfb";
|
||||
* import Display from "../core/display";
|
||||
* import WebUtil from "./webutil";
|
||||
@@ -1411,7 +1412,7 @@ var UI;
|
||||
UI.rfb.sendKey(KeyTable.XK_BackSpace);
|
||||
}
|
||||
for (i = newLen - inputs; i < newLen; i++) {
|
||||
UI.rfb.sendKey(newValue.charCodeAt(i));
|
||||
UI.rfb.sendKey(keysyms.fromUnicode(newValue.charCodeAt(i)).keysym);
|
||||
}
|
||||
|
||||
// Control the text content length in the keyboardinput element
|
||||
|
||||
Reference in New Issue
Block a user