1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

input: add VK_MENU -> LeftAlt mapping for windows

refs: https://github.com/wez/wezterm/issues/1509
refs: https://github.com/wez/wezterm/issues/1483
This commit is contained in:
Wez Furlong 2022-01-06 08:09:55 -07:00
parent dc204c03d6
commit e39b0b1b4a
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ impl KeyCode {
Self::Physical(p) => *p,
Self::LeftShift => PhysKeyCode::LeftShift,
Self::RightShift => PhysKeyCode::RightShift,
Self::LeftAlt => PhysKeyCode::LeftAlt,
Self::Alt | Self::LeftAlt => PhysKeyCode::LeftAlt,
Self::RightAlt => PhysKeyCode::RightAlt,
Self::LeftWindows => PhysKeyCode::LeftWindows,
Self::RightWindows => PhysKeyCode::RightWindows,
@ -284,7 +284,6 @@ impl KeyCode {
| Self::Shift
| Self::Cancel
| Self::Control
| Self::Alt
| Self::Hyper
| Self::Super
| Self::Meta

View File

@ -152,6 +152,7 @@ fn build_map() -> HashMap<WPARAM, PhysKeyCode> {
(VK_LWIN, PhysKeyCode::LeftWindows),
(VK_LSHIFT, PhysKeyCode::LeftShift),
(VK_CAPITAL, PhysKeyCode::CapsLock),
(VK_MENU, PhysKeyCode::LeftAlt),
(VK_LMENU, PhysKeyCode::LeftAlt),
(VK_LCONTROL, PhysKeyCode::LeftControl),
(VK_RWIN, PhysKeyCode::RightWindows),