aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/x11vkbwrapper/handlekeyevents.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/x11vkbwrapper/handlekeyevents.h')
-rw-r--r--tests/manual/x11vkbwrapper/handlekeyevents.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/manual/x11vkbwrapper/handlekeyevents.h b/tests/manual/x11vkbwrapper/handlekeyevents.h
index 760ba757..72fc44f2 100644
--- a/tests/manual/x11vkbwrapper/handlekeyevents.h
+++ b/tests/manual/x11vkbwrapper/handlekeyevents.h
@@ -31,9 +31,9 @@
#define HANDLEKEYEVENTS_H
#include <QObject>
+#include <QHash>
class QKeyEvent;
-
extern "C" {
#include <xdo.h>
}
@@ -52,9 +52,14 @@ public:
bool init();
private:
- void keyTap(const QString &key) const;
+ void keyTap(const QKeyEvent *keyEvent, const QString &key);
+ void keyClick(const KeyCode key, const QString &keyText) const;
void keyPressRelease(const KeyCode key, const bool eventType) const;
- KeyCode getUnicodeKeycode(const QString &key) const;
+ KeyCode getUnicodeKeyCode(const QString &key, int scratchKeyCode) const;
+ void remapScratchKeyCode(const KeySym sym, int scratchKeyCode) const;
+ void sendKeyWithAtspi(const QKeyEvent *keyEvent, const QString key);
+ int getTemporaryKeyCode();
+
protected:
/** Deliver events from a another object(s). */
@@ -63,6 +68,8 @@ protected:
private:
/** Libxdo context. */
xdo_t *m_xdo;
+ /** Store temporary keycodes. */
+ QHash<Qt::Key, int> m_temporaryKeyCodes;
};
#endif // HANDLEKEYEVENTS_H