subsurface/mobile-widgets
Dirk Hohndel 01f1bea995 Mobile: ensure input fields stay visible after keyboard opens
When the user taps on a TextField to enter text, usually the virtual
keyboard will pop up. This code tries to ensure that the keyboard
doesn't cover the entry field that the user was trying to work on.

In order to centralize these changes, this introduces a new
SsrfTextField type which we use to also remove a few redundant default
settings that we previously had for every field. The one TextArea for
the Notes field didn't seem worth creating yet another type for, so
there the changes are done directly in DiveDetailsEdit.

The awkward timer mechanism is necessary as the keyboard pops up
asynchronously and then triggers a change of height for the app, so we
need to wait a little bit before doing the adjustment.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-10-14 13:39:45 -07:00
..
qml Mobile: ensure input fields stay visible after keyboard opens 2019-10-14 13:39:45 -07:00
qmlmanager.cpp Mobile: improve helper function to track selected dives 2019-10-13 11:32:27 -07:00
qmlmanager.h Mobile: add helper function to keep selection in sync 2019-10-13 11:32:27 -07:00
qmlprefs.cpp Revert the singleton PR 2019-09-27 16:26:58 -07:00
qmlprefs.h Revert the singleton PR 2019-09-27 16:26:58 -07:00