From a79f8a3a6774875fc16fd63461e04c2791a8d03d Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 17 Dec 2013 10:47:12 +0100 Subject: [PATCH] Cocoa: fix single punctuation input via CJK input method 2d05d3bd2815c220474b3c07bf3f2ef7417d3070 was not correct. On OS X, when user uses CJK input method, only types single punctuation, it was converted to CJK ones, and not showed in composing text. Task-number: QTBUG-35700 Change-Id: I919edb3f5165bf943c0d90d06a788a2f335bb1ba Reviewed-by: Gabriel de Dietrich --- src/plugins/platforms/cocoa/qnsview.mm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/plugins/platforms/cocoa/qnsview.mm b/src/plugins/platforms/cocoa/qnsview.mm index 1c15c3b561..e183f93c6c 100644 --- a/src/plugins/platforms/cocoa/qnsview.mm +++ b/src/plugins/platforms/cocoa/qnsview.mm @@ -1342,11 +1342,6 @@ static QTabletEvent::TabletDevice wacomTabletDevice(NSEvent *theEvent) { Q_UNUSED(replacementRange) - if (m_sendKeyEvent && m_composingText.isEmpty()) { - // don't send input method events for simple text input (let handleKeyEvent send key events instead) - return; - } - QString commitString; if ([aString length]) { if ([aString isKindOfClass:[NSAttributedString class]]) {