tony / oxwm

Merge pull request #120 from carpentiers/master Browse files
Added question mark to keysyms
Tony, btw. committed 2026-01-25 parents 7b7d320 b1f838b commit 115d06e029495531c127c7eccbd8ea79bf98946a
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 69 pub const XK_LEFT_BRACKET: Keysym = 0x005b;
70 70 pub const XK_RIGHT_BRACKET: Keysym = 0x005d;
71 71 pub const XK_SEMICOLON: Keysym = 0x003b;
72 +pub const XK_QUESTION: Keysym = 0x003f;
72 73 pub const XK_APOSTROPHE: Keysym = 0x0027;
73 74 pub const XK_GRAVE: Keysym = 0x0060;
74 75 pub const XK_BACKSLASH: Keysym = 0x005c;
@@ -216,6 +217,7 @@ pub fn keysym_from_str(s: &str) -> Option<Keysym> {
216 217 "BracketLeft" => Some(XK_LEFT_BRACKET),
217 218 "BracketRight" => Some(XK_RIGHT_BRACKET),
218 219 "Semicolon" => Some(XK_SEMICOLON),
220 + "Question" => Some(XK_QUESTION),
219 221 "Apostrophe" => Some(XK_APOSTROPHE),
220 222 "Grave" => Some(XK_GRAVE),
221 223 "Backslash" => Some(XK_BACKSLASH),
@@ -334,6 +336,7 @@ pub fn format_keysym(keysym: Keysym) -> String {
334 336 XK_LEFT_BRACKET => "[".to_string(),
335 337 XK_RIGHT_BRACKET => "]".to_string(),
336 338 XK_SEMICOLON => ";".to_string(),
339 + XK_QUESTION => "?".to_string(),
337 340 XK_APOSTROPHE => "'".to_string(),
338 341 XK_BACKSLASH => "\\".to_string(),
339 342 XK_PRINT => "Print".to_string(),