summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod/qmacinputcontext_p.h
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-04-08 11:43:39 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-04-08 11:43:39 (GMT)
commit8da880e77db04cc4509e0f48e0b5b1d6265da223 (patch)
treeb6dbd9ceb780e7524cc55a3a63dbf7ef17452036 /src/gui/inputmethod/qmacinputcontext_p.h
parent7edc2b05cfdf143c7f8ac444f93db918a5fd5344 (diff)
downloadQt-8da880e77db04cc4509e0f48e0b5b1d6265da223.zip
Qt-8da880e77db04cc4509e0f48e0b5b1d6265da223.tar.gz
Qt-8da880e77db04cc4509e0f48e0b5b1d6265da223.tar.bz2
QTextEdit character are lost after special characters like ^ ยด `
This happens only on keyboard layouts like French. The is mainly due to the key event processing done by the Input manager. In carbon, the key down event has to be replayed after the input manager finishes his processing. In Cocoa, while unmarking we have to accept the current text. Task-number: 123740 Reviewed-by: nrc
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 f708040..c3f245a 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