BUG: prevent events when hosting
This commit is contained in:
parent
fcca903ae9
commit
01d6ea5ad0
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue