tony / oxwm

Added question mark to keysyms Browse files
Samuel Carpentier committed 2026-01-22 parent 81f72d2 commit b1f838b739b4efdbfe30750a68441dac504a6c68
Showing 1 changed file with 3 additions and 0 deletions. UnifiedSplit
+3 −0 src/keyboard/keysyms.rs
@@ -69,6 +69,7 @@ pub const XK_EQUAL: Keysym = 0x003d;
69 pub const XK_LEFT_BRACKET: Keysym = 0x005b; 69 pub const XK_LEFT_BRACKET: Keysym = 0x005b;
70 pub const XK_RIGHT_BRACKET: Keysym = 0x005d; 70 pub const XK_RIGHT_BRACKET: Keysym = 0x005d;
71 pub const XK_SEMICOLON: Keysym = 0x003b; 71 pub const XK_SEMICOLON: Keysym = 0x003b;
72 +pub const XK_QUESTION: Keysym = 0x003f;
72 pub const XK_APOSTROPHE: Keysym = 0x0027; 73 pub const XK_APOSTROPHE: Keysym = 0x0027;
73 pub const XK_GRAVE: Keysym = 0x0060; 74 pub const XK_GRAVE: Keysym = 0x0060;
74 pub const XK_BACKSLASH: Keysym = 0x005c; 75 pub const XK_BACKSLASH: Keysym = 0x005c;
@@ -216,6 +217,7 @@ pub fn keysym_from_str(s: &str) -> Option<Keysym> {
216 "BracketLeft" => Some(XK_LEFT_BRACKET), 217 "BracketLeft" => Some(XK_LEFT_BRACKET),
217 "BracketRight" => Some(XK_RIGHT_BRACKET), 218 "BracketRight" => Some(XK_RIGHT_BRACKET),
218 "Semicolon" => Some(XK_SEMICOLON), 219 "Semicolon" => Some(XK_SEMICOLON),
220 + "Question" => Some(XK_QUESTION),
219 "Apostrophe" => Some(XK_APOSTROPHE), 221 "Apostrophe" => Some(XK_APOSTROPHE),
220 "Grave" => Some(XK_GRAVE), 222 "Grave" => Some(XK_GRAVE),
221 "Backslash" => Some(XK_BACKSLASH), 223 "Backslash" => Some(XK_BACKSLASH),
@@ -334,6 +336,7 @@ pub fn format_keysym(keysym: Keysym) -> String {
334 XK_LEFT_BRACKET => "[".to_string(), 336 XK_LEFT_BRACKET => "[".to_string(),
335 XK_RIGHT_BRACKET => "]".to_string(), 337 XK_RIGHT_BRACKET => "]".to_string(),
336 XK_SEMICOLON => ";".to_string(), 338 XK_SEMICOLON => ";".to_string(),
339 + XK_QUESTION => "?".to_string(),
337 XK_APOSTROPHE => "'".to_string(), 340 XK_APOSTROPHE => "'".to_string(),
338 XK_BACKSLASH => "\\".to_string(), 341 XK_BACKSLASH => "\\".to_string(),
339 XK_PRINT => "Print".to_string(), 342 XK_PRINT => "Print".to_string(),