path: root/src/plugins/platforms/ios/qiosinputcontext.h
diff options
authorRichard Moe Gustavsen <>2013-11-16 10:59:17 +0100
committerThe Qt Project <>2013-11-25 17:11:26 +0100
commit484d6ce7764183b6d215310735eeef3e23332d1d (patch)
treead3e4c7277b4922a0ed158e5ec43cd9a01e41efc /src/plugins/platforms/ios/qiosinputcontext.h
parentbdf0670c0299dbefb0dbd5c5937320574233e551 (diff)
iOS: update keyboard layout upon focus transfer
When iOS transfers focus from one view to another, it asks the new view for its UIKeyInput properties before deciding how the keyboard should be configured. For Qt, the same QUIView is used for the whole QWindow which means that UIKit will not change the keyboard configuration just because we change the focus object in Qt, since the UIView does not change. There seems to be no way to tell UIKit that the keyboard needs to change becuse the UIKeyInput properties has changed. To work around this, we briefly resign first responder status, and grabs it again, for the same QUIView. Change-Id: I2d15cc0c928deb023e7da58ad4669b7099dce2cf Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/plugins/platforms/ios/qiosinputcontext.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiosinputcontext.h b/src/plugins/platforms/ios/qiosinputcontext.h
index 3caadac29d..533ba686e1 100644
--- a/src/plugins/platforms/ios/qiosinputcontext.h
+++ b/src/plugins/platforms/ios/qiosinputcontext.h
@@ -71,6 +71,7 @@ private:
UIView<UIKeyInput> *m_focusView;
QTransform m_inputItemTransform;
bool m_hasPendingHideRequest;
+ bool m_inSetFocusObject;