Hi Christian,
Thanks for your effort on this issue.
We have a novnc server running and access the console of vms on other
servers via the novnc server.
I also added a method in novnc to send a string via keyevent. The code
looks like
+ sendString : function(str) {
+ if (this._rfb_state !== "normal" || this._view_only) { return
false; }
+ Util.Info("Sending: "+str);
+ var arr = [];
+ for (var i = 0; i < str.length; i++ ) {
+ var char = str.substring(i, i + 1);
+ var code = char.charCodeAt(0);
+ if (shifted[char]) RFB.messages.keyEvent(this._sock,
XK_Shift_L, 1); // Shift
+ RFB.messages.keyEvent(this._sock, code, 1); // (key)
+ RFB.messages.keyEvent(this._sock, code, 0); // (key)
+ if (shifted[char]) RFB.messages.keyEvent(this._sock,
XK_Shift_L, 0); // Shift
+ }
+
+ this._sock.flush();
+ },
+
In my testing, only 8 chars can be accepted via novnc even the string is much
longer.
As described in [1], the patch fixes the issue. I verified it is working.
[1] http://lists.nongnu.org/archive/html/qemu-
devel/2016-06/msg00397.html
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1689488
Title:
vnc console accepts only 8 characters
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1689488/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs