summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod/qmacinputcontext_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inputmethod/qmacinputcontext_p.h')
-rw-r--r--src/gui/inputmethod/qmacinputcontext_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qmacinputcontext_p.h b/src/gui/inputmethod/qmacinputcontext_p.h
index e42b36c..472b37b 100644
--- a/src/gui/inputmethod/qmacinputcontext_p.h
+++ b/src/gui/inputmethod/qmacinputcontext_p.h
@@ -78,6 +78,10 @@ public:
static OSStatus globalEventProcessor(EventHandlerCallRef, EventRef, void *);
static void initialize();
static void cleanup();
+
+ EventRef lastKeydownEvent() { return keydownEvent; }
+ void setLastKeydownEvent(EventRef);
+
protected:
void mouseHandler(int pos, QMouseEvent *);
private:
@@ -85,6 +89,7 @@ private:
bool recursionGuard;
TSMDocumentID textDocument;
QString currentText;
+ EventRef keydownEvent;
};
QT_END_NAMESPACE