diff --git a/app/ui.js b/app/ui.js index f6615674..5f0d403e 100644 --- a/app/ui.js +++ b/app/ui.js @@ -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; } }, diff --git a/core/rfb.js b/core/rfb.js index 3d12ae4b..9f661ed2 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -442,7 +442,7 @@ RFB.prototype = { return; } - if (!this._focus_on_click) { + if (!this.focusOnClick) { return; }