Fix release key

This commit is contained in:
vCaesar 2017-06-30 21:22:34 +08:00
parent 44578aad48
commit 8fe2f76d8c

View File

@ -98,9 +98,9 @@ void win32KeyEvent(int key, MMKeyFlags flags)
} }
/* Set the scan code for keyup */ /* Set the scan code for keyup */
if ( flags & KEYEVENTF_KEYUP ) { // if ( flags & KEYEVENTF_KEYUP ) {
scan |= 0x80; // scan |= 0x80;
} // }
keybd_event(key, scan, flags, 0); keybd_event(key, scan, flags, 0);
} }