enhancements in android keyboard interaction #376
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this PR introduces two enhancements related to how the app interacts with the on-screen keyboard on android devices.
1. enable suggestions in form fields
currently, form fields (e.g. the title field when uploading a new document) do not show any suggestions while typing.
this means that there's no autocorrect and swipe typing is rendered completely useless.
this is caused by the
FormBuilderTextField
'senableSuggestions
property being set tofalse
.since the docs don't mention a default value for this property, i'm assuming that the default is simply
false
.explicitely setting
enableSuggestions
totrue
makes the suggestions work (see Fig. A), so i simply added it to all uses of theFormBuilderTextField
.This includes (but may not be limited to):
2. enable autofill of user credentials in login form
this one is quite simple because i've just added an
AutofillGroup
wrapping theFormBuilderField
of the user credentials form shown when adding a new user.This makes autofill suggestions show up on the keyboard normally (see Fig. B).