mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
BUG: prevent events when hosting
This commit is contained in:
parent
fcca903ae9
commit
01d6ea5ad0
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user