path: root/src/plugins/platforms/ios/qiosinputcontext.h
diff options
authorRichard Moe Gustavsen <>2014-11-07 23:52:20 +0100
committerJani Heikkinen <>2014-11-13 20:03:09 +0100
commitf12d4ee3fb6e647a0407c058ca76847ed3854a5e (patch)
treeab21886d29f68a64a82af2add6bdcc19e943693e /src/plugins/platforms/ios/qiosinputcontext.h
parentf3b93a7724929408a9b673674ffa73c164e0a771 (diff)
iOS: close keyboard by resigning first responder
Current approach of reloading input views assumes that the first responder is not a QIOSTextResponder, but a QUIView. This is not always the case, e.g if someone calls update after setting IM enabled on current focus object to false. In that case we'll try to close the keyboard by reloading input views on a quitextresponder which can fail if the text responder has an external input view attached. This patch will instead hide the keyboard by resigning first responder when it is a QIOSTextResponder. If it is not a QIOSTextResponder it means that the keyboard is already closed, or a third-party UIVIew that supports key input is first responder. In either case we then leave it as-is. Task-number: QTBUG-42523 Change-Id: I4dab648af9029941a8d5d3b00011fbd169be5482 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/plugins/platforms/ios/qiosinputcontext.h')
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/platforms/ios/qiosinputcontext.h b/src/plugins/platforms/ios/qiosinputcontext.h
index 1f1130f932..d2a9c261ba 100644
--- a/src/plugins/platforms/ios/qiosinputcontext.h
+++ b/src/plugins/platforms/ios/qiosinputcontext.h
@@ -85,15 +85,12 @@ public:
const ImeState &imeState() { return m_imeState; };
bool inputMethodAccepted() const;
- bool isReloadingInputViewsFromUpdate() const { return m_isReloadingInputViewsFromUpdate; }
static QIOSInputContext *instance();
QIOSKeyboardListener *m_keyboardListener;
QIOSTextInputResponder *m_textResponder;
ImeState m_imeState;
- bool m_isReloadingInputViewsFromUpdate;