[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix bootstart of input field
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
CendioOssman committed May 15, 2017
1 parent afb621d commit 55988e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 55988e7

Please sign in to comment.