mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
gruacamole native kbd reset
This commit is contained in:
parent
d2477a37d0
commit
36937a0776
@ -159,7 +159,6 @@
|
||||
private observer = new ResizeObserver(this.onResise.bind(this))
|
||||
private focused = false
|
||||
private fullscreen = false
|
||||
private activeKeys: Set<number> = new Set()
|
||||
|
||||
get admin() {
|
||||
return this.$accessor.user.admin
|
||||
@ -346,7 +345,6 @@
|
||||
}
|
||||
|
||||
this.$client.sendData('keydown', { key })
|
||||
this.activeKeys.add(key)
|
||||
};
|
||||
|
||||
// @ts-ignore
|
||||
@ -356,8 +354,16 @@
|
||||
}
|
||||
|
||||
this.$client.sendData('keyup', { key })
|
||||
this.activeKeys.delete(key)
|
||||
};
|
||||
|
||||
// @ts-ignore
|
||||
this.kbdReset = () => {
|
||||
// @ts-ignore
|
||||
Keyboard.reset();
|
||||
}
|
||||
|
||||
//Keyboard.release(keysym);
|
||||
//Keyboard.type(str);
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
@ -432,10 +438,8 @@
|
||||
return
|
||||
}
|
||||
|
||||
for (let key of this.activeKeys) {
|
||||
this.$client.sendData('keyup', { key })
|
||||
this.activeKeys.delete(key)
|
||||
}
|
||||
// @ts-ignore
|
||||
this.kbdReset();
|
||||
}
|
||||
|
||||
onMousePos(e: MouseEvent) {
|
||||
|
Loading…
Reference in New Issue
Block a user