Improved focus handling on touch input field

The previous method of retaining focus didn't work reliably when
the RFB object tried to move the focus to the canvas. Add a setting
to control "focus on click" behaviour instead of letting them try
to fight it out.
This commit is contained in:
Pierre Ossman
2017-11-02 15:30:36 +01:00
parent fc64213cec
commit 1d6ff4a3e9
3 changed files with 28 additions and 17 deletions

View File

@@ -180,6 +180,7 @@ callback event name, and the callback function.
| local_cursor | bool | RW | false | Request locally rendered cursor
| shared | bool | RW | true | Request shared VNC mode
| view_only | bool | RW | false | Disable client mouse/keyboard
| focus_on_click | bool | RW | true | Grab focus on canvas on mouse click
| xvp_password_sep | str | RW | '@' | Separator for XVP password fields
| disconnectTimeout | int | RW | 3 | Time (in seconds) to wait for disconnection
| wsProtocols | arr | RW | ['binary'] | Protocols to use in the WebSocket connection