KASM-5736 fix scrolling on secondary screens injecting text

This commit is contained in:
mattmcclaskey 2024-03-14 11:21:51 -04:00
parent bbc685aa0f
commit 8527c9f331
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -211,7 +211,7 @@ const UI = {
if (supportsBinaryClipboard()) {
// explicitly request permission to the clipboard
navigator.permissions.query({ name: "clipboard-read" })
.then((result) => { Log.Debug('binary clipboard enabled') });
.then((result) => { Log.Debug('binary clipboard enabled') })
.catch(() => {});
}
},

View File

@ -1872,6 +1872,7 @@ export default class RFB extends EventTargetMixin {
this._mouseLastScreenIndex = event.data.screenIndex;
this._mousePos = { 'x': coords[0], 'y': coords[1] };
RFB.messages.pointerEvent(this._sock, this._mousePos.x, this._mousePos.y, 0, event.data.args[2], event.data.args[3]);
break;
case 'keyEvent':
RFB.messages.keyEvent(this._sock, ...event.data.args);
break;