mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Merge pull request #494 from go-vgo/bitmap-pr
Fixed type x11 key bug #493
This commit is contained in:
commit
bfa6b232be
2 changed files with 6 additions and 1 deletions
|
|
@ -79,6 +79,11 @@ MMKeyCode keyCodeForChar(const char c) {
|
|||
if (code == NoSymbol) {
|
||||
return K_NOT_A_KEY;
|
||||
}
|
||||
|
||||
// x11 key bug
|
||||
if (c == 60) {
|
||||
code = 44;
|
||||
}
|
||||
return code;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
#elif defined(USE_X11)
|
||||
Display *XGetMainDisplay(void);
|
||||
|
||||
|
||||
void X_KEY_EVENT(Display *display, MMKeyCode key, bool is_press) {
|
||||
XTestFakeKeyEvent(display, XKeysymToKeycode(display, key), is_press, CurrentTime);
|
||||
XSync(display, false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue