We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4596690 commit 83b0372Copy full SHA for 83b0372
src/lib.rs
@@ -66,7 +66,10 @@ pub extern "C" fn XTestFakeKeyEvent(
66
let mut dev = DEVICE.lock().unwrap();
67
68
// Seems that X11 keycodes are just 8 + linux keycode - https://wiki.archlinux.org/title/Keyboard_input#Identifying_keycodes
69
- let key = Key::new((keycode - 8) as u16);
+ let key = match keycode {
70
+ 156 => Key::KEY_TAB, // I have no idea where this comes from
71
+ keycode => Key::new((keycode - 8) as u16)
72
+ };
73
dev.emit(&[InputEvent::new_now(EventType::KEY, key.0, is_press as i32)])
74
.unwrap();
75
1
0 commit comments