mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-05 04:59:05 +08:00
fix win scancode filter, ignore 0xE0..
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
3fc686c3d6
commit
2143889404
@ -617,7 +617,8 @@ pub fn map_keyboard_mode(event: &Event, mut key_event: KeyEvent) -> Option<KeyEv
|
||||
let keycode = match peer.as_str() {
|
||||
"windows" => {
|
||||
// https://github.com/rustdesk/rustdesk/issues/1371
|
||||
if event.scan_code > 255 {
|
||||
// Filter scancodes that are greater than 255 and the hight word is not 0xE0.
|
||||
if event.scan_code > 255 && (event.scan_code >> 8) != 0xE0 {
|
||||
return None;
|
||||
}
|
||||
event.scan_code
|
||||
|
Loading…
Reference in New Issue
Block a user