summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-03-18 14:55:24 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-29 10:39:11 +0100
commit1f82af17f62a909cbc264284b76732877f0345ee (patch)
tree723e9975c4d01eb406cfb3c53f10bee15192a1ac
parent075c876f9afd434ccf86664bf978287915468580 (diff)
iOS: keep keyboard rect in sync
If you resign/become first responder several times while the keyboard is animating (e.g changing focus between focus objects while the keyboard is animating), iOS will short-cut the whole animation, and jump directly to keyboard end-state. For that reason, we always need to handle keyboardRectChanged, and not bail out early. This is fine, since the guard we had was really only meant for keyboardWillShow/Hide in the first place. Change-Id: I3a3d1e7061962286c538360029ed38410dc0f347 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
-rw-r--r--src/plugins/platforms/ios/qiosinputcontext.mm3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/platforms/ios/qiosinputcontext.mm b/src/plugins/platforms/ios/qiosinputcontext.mm
index 13a0b46745..4704d1a751 100644
--- a/src/plugins/platforms/ios/qiosinputcontext.mm
+++ b/src/plugins/platforms/ios/qiosinputcontext.mm
@@ -145,9 +145,6 @@
- (void) keyboardDidChangeFrame:(NSNotification *)notification
{
Q_UNUSED(notification);
- if (m_ignoreKeyboardChanges)
- return;
-
[self handleKeyboardRectChanged];
// If the keyboard was visible and docked from before, this is just a geometry