mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
add x11 type support
This commit is contained in:
parent
5005c38b4f
commit
37dfd14681
1 changed files with 7 additions and 0 deletions
|
|
@ -212,6 +212,10 @@ void toggleUnicode(UniChar ch, const bool down)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(USE_X11)
|
||||
#define toggleUniKey(c, down) toggleKey(c, down, MOD_NONE)
|
||||
#endif
|
||||
|
||||
// unicode type
|
||||
void unicodeType(const unsigned value){
|
||||
#if defined(IS_MACOSX)
|
||||
|
|
@ -231,6 +235,9 @@ void unicodeType(const unsigned value){
|
|||
ip.ki.dwFlags = KEYEVENTF_UNICODE; // KEYEVENTF_KEYUP for key release.
|
||||
|
||||
SendInput(1, &ip, sizeof(INPUT));
|
||||
#elif defined(USE_X11)
|
||||
toggleUniKey(value, true);
|
||||
toggleUniKey(value, false);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue