From 88ecc905ef6e2e45fcc198905e5db89def8755b6 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 21 Dec 2023 15:53:46 +0000 Subject: [PATCH] sync down control keys on scroll --- core/rfb.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/rfb.js b/core/rfb.js index 40f2db16..054c48bd 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -2105,6 +2105,9 @@ export default class RFB extends EventTargetMixin { ev.stopPropagation(); ev.preventDefault(); + // Ensure keys down are synced between client and server + this._keyboard.clearKeysDown(ev); + // On MacOs we need to translate zooming CMD+wheel to CTRL+wheel if (isMac() && (this._keyboard._keyDownList["MetaLeft"] || this._keyboard._keyDownList["MetaRight"])) { this._keyboard._sendKeyEvent(this._keyboard._keyDownList["MetaLeft"], "MetaLeft", false);