From 01d6ea5ad0881503b8edf165608f127aa3a8b28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 16 Jun 2020 13:12:36 +0200 Subject: [PATCH] BUG: prevent events when hosting --- client/src/components/video.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/video.vue b/client/src/components/video.vue index 9023498b..6952b42c 100644 --- a/client/src/components/video.vue +++ b/client/src/components/video.vue @@ -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) {