BUG: prevent events when hosting

This commit is contained in:
Miroslav Šedivý 2020-06-16 13:12:36 +02:00
parent fcca903ae9
commit 01d6ea5ad0

View File

@ -339,11 +339,11 @@
/* Initialize Guacamole Keyboard */ /* Initialize Guacamole Keyboard */
this.keyboard.onkeydown = (key: number) => { this.keyboard.onkeydown = (key: number) => {
if (!this.focused || !this.hosting || this.locked) { if (!this.focused || !this.hosting || this.locked) {
return false return true
} }
this.$client.sendData('keydown', { key }) this.$client.sendData('keydown', { key })
return true return false
} }
this.keyboard.onkeyup = (key: number) => { this.keyboard.onkeyup = (key: number) => {
if (!this.focused || !this.hosting || this.locked) { if (!this.focused || !this.hosting || this.locked) {