Support for Back/Forward multimedia keys (#20695)

- Added Support for Back/Forward multimedia keys (Linux)
This commit is contained in:
Peter Tripp
2024-11-18 09:36:08 -05:00
committed by GitHub
parent 5fd7afb9da
commit f01a86c644
4 changed files with 10 additions and 0 deletions
+2
View File
@@ -222,6 +222,8 @@ fn is_printable_key(key: &str) -> bool {
| "insert"
| "home"
| "end"
| "back"
| "forward"
| "escape"
)
}
@@ -684,6 +684,8 @@ impl Keystroke {
Keysym::ISO_Left_Tab => "tab".to_owned(),
Keysym::KP_Prior => "pageup".to_owned(),
Keysym::KP_Next => "pagedown".to_owned(),
Keysym::XF86_Back => "back".to_owned(),
Keysym::XF86_Forward => "forward".to_owned(),
Keysym::comma => ",".to_owned(),
Keysym::period => ".".to_owned(),
@@ -1160,6 +1160,8 @@ fn parse_syskeydown_msg_keystroke(wparam: WPARAM) -> Option<Keystroke> {
VK_END => "end",
VK_PRIOR => "pageup",
VK_NEXT => "pagedown",
VK_BROWSER_BACK => "back",
VK_BROWSER_FORWARD => "forward",
VK_ESCAPE => "escape",
VK_INSERT => "insert",
VK_DELETE => "delete",
@@ -1196,6 +1198,8 @@ fn parse_keydown_msg_keystroke(wparam: WPARAM) -> Option<KeystrokeOrModifier> {
VK_END => "end",
VK_PRIOR => "pageup",
VK_NEXT => "pagedown",
VK_BROWSER_BACK => "back",
VK_BROWSER_FORWARD => "forward",
VK_ESCAPE => "escape",
VK_INSERT => "insert",
VK_DELETE => "delete",