Fix old focus on click references

The property was renamed when mergin the public API changes, but
a few references were overlooked.
This commit is contained in:
Pierre Ossman 2017-11-11 16:44:53 +01:00
parent a201bfc5eb
commit b8dfb983df
2 changed files with 3 additions and 3 deletions

View File

@ -1432,7 +1432,7 @@ var UI = {
document.getElementById('noVNC_keyboard_button')
.classList.add("noVNC_selected");
if (UI.rfb) {
UI.rfb.set_focus_on_click(false);
UI.rfb.focusOnClick = false;
}
},
@ -1440,7 +1440,7 @@ var UI = {
document.getElementById('noVNC_keyboard_button')
.classList.remove("noVNC_selected");
if (UI.rfb) {
UI.rfb.set_focus_on_click(true);
UI.rfb.focusOnClick = true;
}
},

View File

@ -442,7 +442,7 @@ RFB.prototype = {
return;
}
if (!this._focus_on_click) {
if (!this.focusOnClick) {
return;
}