Fix bootstart of input field

It wasn't working properly anymore because it expected to be triggered
by the "load". But we now register that event listener long after the
"load" event has already fired.
This commit is contained in:
Pierre Ossman 2017-05-15 14:40:28 +02:00
parent afb621d577
commit 55988e7aec
1 changed files with 3 additions and 2 deletions

View File

@ -98,6 +98,9 @@ const UI = {
document.getElementById("noVNC_status")
.addEventListener('click', UI.hideStatus);
// Bootstrap fallback input handler
UI.keyboardinputReset();
UI.openControlbar();
// Show the connect panel on first load unless autoconnecting
@ -311,8 +314,6 @@ const UI = {
.addEventListener('touchend', UI.controlbarHandleMouseUp);
document.getElementById("noVNC_control_bar_handle")
.addEventListener('touchmove', UI.dragControlbarHandle);
window.addEventListener('load', UI.keyboardinputReset);
},
addExtraKeysHandlers: function() {