mirror of
https://github.com/wez/wezterm.git
synced 2024-12-28 07:55:03 +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:
parent
dc204c03d6
commit
e39b0b1b4a
@ -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
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user