iOS: keep keyboard rect in sync
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>
Tue, 18 Mar 2014 13:55:24 +0000 (14:55 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 29 Mar 2014 09:39:11 +0000 (10:39 +0100)
commit1f82af17f62a909cbc264284b76732877f0345ee
tree723e9975c4d01eb406cfb3c53f10bee15192a1ac
parent075c876f9afd434ccf86664bf978287915468580
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>
src/plugins/platforms/ios/qiosinputcontext.mm