mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-08-31 11:17:27 +00:00
fix(snippets): adjust evdev keycode offset for input handling
This commit is contained in:
parent
61c804235c
commit
77f7f8c113
1 changed files with 1 additions and 0 deletions
|
@ -345,6 +345,7 @@ impl InputManager for EvdevInputManager {
|
|||
continue;
|
||||
}
|
||||
|
||||
// evdev keycodes are offset by 8 from X11 keycodes
|
||||
let keycode = ev.code() + 8;
|
||||
let direction = match ev.value() {
|
||||
0 => xkb::KeyDirection::Up,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue