mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Merge pull request #494 from go-vgo/bitmap-pr
Fixed type x11 key bug #493
This commit is contained in:
commit
bfa6b232be
@ -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 New Issue
Block a user