Merge pull request #1522 from okhowang/odd-shift

workaround odd shift behaviour
This commit is contained in:
metalefty 2020-04-21 11:40:38 +09:00 committed by GitHub
commit 21a4118c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1532,6 +1532,12 @@ xrdp_wm_key(struct xrdp_wm *self, int device_flags, int scan_code)
return 0;
}
// workaround odd shift behavior
// see https://github.com/neutrinolabs/xrdp/issues/397
if (scan_code == 42 && device_flags == (KBD_FLAG_UP | KBD_FLAG_EXT)) {
return 0;
}
if (device_flags & KBD_FLAG_UP) /* 0x8000 */
{
self->keys[scan_code] = 0;