diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2014-02-25 14:16:23 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-21 08:41:23 +0100 |
commit | 37ba38b33457412ba55c37cc69dd618ef21bda5b (patch) | |
tree | 55884aa63b9c3d507e5f65cfb3a33fea338bc8fd /LICENSE.FDL | |
parent | 3d5234eb9a200752bce8fb2539efeb4d812b3b27 (diff) |
iOS: implement 'close keyboard' gesture
Before this patch there were no way for the user to hide
the keyboard on iPhone for multi-line edit fields unless
the app had a separate button added for it. And even that
would be problematic since we scroll the screen (and
perhaps the button) to track the cursor.
This patch implements a gesture that resembles the 'hide
keyboard' gesture that UIScrollView implements on iOS 7.
Note that if you start the gesture inside the edit field,
you will start selecting text as well. This will also cause
the cursor to move and the screen to scroll. After some
testing and failing, it seems like we need to live with such
artifacts until we do get around to do the only sensible thing;
fix up how we do text selection on touch platforms. Working
around it becomes just to messy.
Change-Id: I1c0d9c88ff1f5430587a49591f165b9708e5dc60
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'LICENSE.FDL')
0 files changed, 0 insertions, 0 deletions