This commit is contained in:
Samuel Mannehed 2016-08-30 07:55:10 +00:00 committed by GitHub
commit 6e67c515f0
1 changed files with 8 additions and 6 deletions

View File

@ -184,6 +184,7 @@ var RFB;
throw exc;
}
if (!this._view_only) {
this._keyboard = new Keyboard({target: this._focusContainer,
onKeyPress: this._handleKeyPress.bind(this)});
@ -191,6 +192,7 @@ var RFB;
onMouseButton: this._handleMouseButton.bind(this),
onMouseMove: this._handleMouseMove.bind(this),
notify: this._keyboard.sync.bind(this._keyboard)});
}
this._sock = new Websock();
this._sock.on('message', this._handle_message.bind(this));