fix apps key

This commit is contained in:
rustdesk
2021-08-10 12:18:10 +08:00
parent bb25964307
commit e510d2744d
7 changed files with 10 additions and 7 deletions

View File

@@ -1134,6 +1134,8 @@ lazy_static::lazy_static! {
("VK_NUMPAD7", Key::ControlKey(ControlKey::Numpad7)),
("VK_NUMPAD8", Key::ControlKey(ControlKey::Numpad8)),
("VK_NUMPAD9", Key::ControlKey(ControlKey::Numpad9)),
("Apps", Key::ControlKey(ControlKey::Apps)),
("Meta", Key::ControlKey(ControlKey::Meta)),
("RAlt", Key::ControlKey(ControlKey::RAlt)),
("RWin", Key::ControlKey(ControlKey::RWin)),
("RControl", Key::ControlKey(ControlKey::RControl)),

View File

@@ -890,6 +890,10 @@ impl Handler {
}
let mut name = name;
#[cfg(target_os = "linux")]
if code == 65383 { // VK_MENU
name = "Apps".to_owned();
}
if extended {
match name.as_ref() {