From: Tomasz Olszak Date: Thu, 21 Nov 2013 21:53:20 +0000 (+0100) Subject: HW Back button: Fixed after merge with 5.2 stable. X-Git-Tag: submit/tizen_common/20150107.105300~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9eec42eb1237f41c77215f8f4e31abbc5b51ee68;p=platform%2Fupstream%2Fqtbase.git HW Back button: Fixed after merge with 5.2 stable. Change-Id: I3253b116747124d67ccd63396a3fe710d0d1d96d Reviewed-by: Jarosław Staniek Reviewed-by: Tomasz Olszak --- diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index e751e944c4..8e09017fc6 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -1887,6 +1887,13 @@ void QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyE window = QGuiApplication::focusWindow(); } +#ifdef Q_OS_LINUX_TIZEN + if (e->key == Qt::Key_Back && QGuiApplication::inputMethod() && QGuiApplication::inputMethod()->isVisible()) { + QGuiApplication::inputMethod()->hide(); + return; + } +#endif + QKeyEvent ev(e->keyType, e->key, e->modifiers, e->nativeScanCode, e->nativeVirtualKey, e->nativeModifiers, e->unicode, e->repeat, e->repeatCount);