Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

keysyms to keycodes

  • Loading branch information...
commit 0f5c57904bb74a3cc336e5ebf847ae36389c7862 1 parent 5eb6403
@phooky authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  eventmap.c
View
3  eventmap.c
@@ -192,7 +192,8 @@ read_one(
int key = keymap[button];
if (key != 0)
{
- XTestFakeKeyEvent(dpy, key, is_press, 0);
+ KeyCode code = XKeysymToKeycode(display, key);
+ XTestFakeKeyEvent(dpy, code, is_press, 0);
//FakeKeyEvent(dpy, key, is_press, 0);
}
else
Please sign in to comment.
Something went wrong with that request. Please try again.