more control keys, and VkKeyScanW -> VkKeyScanExW with forground window

keyboard layout
This commit is contained in:
open-trade
2022-01-12 18:11:42 +08:00
parent 8ea5d80f01
commit 3aebc43111
2 changed files with 10 additions and 1 deletions

View File

@@ -323,6 +323,12 @@ impl Handler {
Key::CapsLock | Key::NumLock | Key::ScrollLock => {
return;
}
Key::Home => Some(ControlKey::Home),
Key::End => Some(ControlKey::End),
Key::Insert => Some(ControlKey::Insert),
Key::PageUp => Some(ControlKey::PageUp),
Key::PageDown => Some(ControlKey::PageDown),
Key::Pause => Some(ControlKey::Pause),
_ => None,
};
let mut key_event = KeyEvent::new();