From a409896c773ae50665bf7b97e3de8b8c2333b38e Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 15 Sep 2019 15:10:48 +0200 Subject: [PATCH] Change linux bridge to use KeyPress events instead of KeyRelease --- native/liblinuxbridge/bridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/liblinuxbridge/bridge.cpp b/native/liblinuxbridge/bridge.cpp index 301618e..ab2caed 100644 --- a/native/liblinuxbridge/bridge.cpp +++ b/native/liblinuxbridge/bridge.cpp @@ -183,7 +183,7 @@ void event_callback(XPointer p, XRecordInterceptData *hook) int res = XLookupString(&event, buffer.data(), buffer.size(), NULL, NULL); switch (event_type) { - case KeyRelease: + case KeyPress: //printf ("%d %d %s\n", key_code, res, buffer.data()); if (res > 0 && key_code != 22) { // Printable character, but not backspace keypress_callback(context_instance, buffer.data(), buffer.size(), 0, key_code);