sync down control keys on scroll

This commit is contained in:
matt 2023-12-21 15:53:46 +00:00
parent 82e0100a97
commit 88ecc905ef
1 changed files with 3 additions and 0 deletions

View File

@ -2105,6 +2105,9 @@ export default class RFB extends EventTargetMixin {
ev.stopPropagation(); ev.stopPropagation();
ev.preventDefault(); 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 // On MacOs we need to translate zooming CMD+wheel to CTRL+wheel
if (isMac() && (this._keyboard._keyDownList["MetaLeft"] || this._keyboard._keyDownList["MetaRight"])) { if (isMac() && (this._keyboard._keyDownList["MetaLeft"] || this._keyboard._keyDownList["MetaRight"])) {
this._keyboard._sendKeyEvent(this._keyboard._keyDownList["MetaLeft"], "MetaLeft", false); this._keyboard._sendKeyEvent(this._keyboard._keyDownList["MetaLeft"], "MetaLeft", false);