Merge 0ccf432f12 into f4f4e8993d
This commit is contained in:
commit
6e67c515f0
|
|
@ -184,13 +184,15 @@ var RFB;
|
||||||
throw exc;
|
throw exc;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._keyboard = new Keyboard({target: this._focusContainer,
|
if (!this._view_only) {
|
||||||
onKeyPress: this._handleKeyPress.bind(this)});
|
this._keyboard = new Keyboard({target: this._focusContainer,
|
||||||
|
onKeyPress: this._handleKeyPress.bind(this)});
|
||||||
|
|
||||||
this._mouse = new Mouse({target: this._target,
|
this._mouse = new Mouse({target: this._target,
|
||||||
onMouseButton: this._handleMouseButton.bind(this),
|
onMouseButton: this._handleMouseButton.bind(this),
|
||||||
onMouseMove: this._handleMouseMove.bind(this),
|
onMouseMove: this._handleMouseMove.bind(this),
|
||||||
notify: this._keyboard.sync.bind(this._keyboard)});
|
notify: this._keyboard.sync.bind(this._keyboard)});
|
||||||
|
}
|
||||||
|
|
||||||
this._sock = new Websock();
|
this._sock = new Websock();
|
||||||
this._sock.on('message', this._handle_message.bind(this));
|
this._sock.on('message', this._handle_message.bind(this));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue