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 */
this.keyboard.onkeydown = (key: number) => {
if (!this.focused || !this.hosting || this.locked) {
return false
return true
}
this.$client.sendData('keydown', { key })
return true
return false
}
this.keyboard.onkeyup = (key: number) => {
if (!this.focused || !this.hosting || this.locked) {