Keypress doubling when password passed in the URL

79 views
Skip to first unread message

Randall Frank

unread,
Nov 29, 2017, 7:56:10 PM11/29/17
to noVNC
I'm using noVNC in Chrome and against a tightvnc server and the vnc_lite.html setup.  First, everything works if I let noVNC prompt for the vncserver password.  Also, the server connection works just fine with other vnc clients.  

I am having problems when I add &password=thepwd to the URL. vnc_lite makes the connection automatically and displays the content just fine.  
The problem I see is that first I need to type the tab key to change the keyboard focus to the noVNC element before keyboard input will work. Second, when keyboard focus is set, all keystrokes are repeated.  For example, if I type 'abc' in a xterm displaying in the server, I see 'aabbcc'.

Is there any way to cause the focus/keyboard handling changes that are made when the password is entered and the entry field hidden to happen when the password is part of the URL?

Thanks!

Samuel Mannehed

unread,
Nov 30, 2017, 5:03:42 AM11/30/17
to Randall Frank, no...@googlegroups.com
Hi Randall,

This sounds like a very weird problem.. I can not reproduce it, but
I have a few follow up questions for you below:

> I'm using noVNC in Chrome and against a tightvnc server and the
> vnc_lite.html setup. First, everything works if I let noVNC prompt
> for the vncserver password. Also, the server connection works just
> fine with other vnc clients.

What platform are you running Chrome and noVNC on?

> I am having problems when I add &password=thepwd to the URL. vnc_lite
> makes the connection automatically and displays the content just
> fine. The problem I see is that first I need to type the tab key to
> change the keyboard focus to the noVNC element before keyboard input
> will work.

That should not be needed. What version of noVNC are you using? Doesn't
clicking on the canvas give it focus?

> Second, when keyboard focus is set, all keystrokes are repeated. For
> example, if I type 'abc' in a xterm displaying in the server, I see
> 'aabbcc'.
>
> Is there any way to cause the focus/keyboard handling changes that
> are made when the password is entered and the entry field hidden to
> happen when the password is part of the URL?

It just sounds strange, have you made any local modifications to your
noVNC?

Regards,
--
Samuel Mannehed Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600 https://plus.google.com/+CendioThinLinc

Randall Frank

unread,
Nov 30, 2017, 8:53:55 AM11/30/17
to Samuel Mannehed, no...@googlegroups.com
I am using a URL like this:

I have a handle on the focus issue now, independent issue.  It appears to be a side effect of an iframe.  Replaced the iframe with a redirect to the URL noted above and it fixed the tab to focus issue, but I still have the character doubling issue if I include '&password=mypassword'  without that option, it works fine.  

version details:

Chrome: Version 62.0.3202.62 (Official Build) (64-bit)
OS: Ubuntu 16.04.3 (everything is running on this system, Nginx, Chrome, noVNC, vncserver, ...)
noVNC:  0.6.1 unmodified

I see vnc_lite.html has been replaced in 0.6.2, so I'm a bit behind.  I'll give the 1.0.0 pre-release (and 0.6.2) a try and see if they fix it.

Thanks!

Randall Frank

unread,
Nov 30, 2017, 9:34:39 AM11/30/17
to Samuel Mannehed, no...@googlegroups.com
It looks like the issue is fixed in the 1.0.0 pre-release.  I'm moving to that version!!

Thanks!

Samuel Mannehed

unread,
Dec 4, 2017, 4:53:12 AM12/4/17
to Randall Frank, no...@googlegroups.com

> It looks like the issue is fixed in the 1.0.0 pre-release. I'm
> moving to that version!!

Ok, good to hear. Hopefully we should get a 1.0.0 proper release out
soon.
Reply all
Reply to author
Forward
0 new messages