-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidequest: add GameActivity_setImeEditorInfo support to android-activity #171
Comments
The input types have many variations:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is needed for setting the keyboard type from rust. It currently doesn't exist. Needed for
For autocompletion to work, we need to be able to set various softkeyboard input options. This is done via
GameActivity_setImeEditorInfo
. Unfortunately this is not exposed in android-activity yet. Let's add this.@lucasmerlin has a patch that simply sets some sane default in
but it would make more sense to have this as something you can call independently from showing the keyboard.
First thing we need to do is make the interface a bit more rusty by making the
imeOptions
andinputTypes
into proper bitflag types.Winit updates
todo: split this off into a separate issue
One thing to note is that
winit
abstracts the IME a bit, but it does provide anImePurpose
enum with the following variants:We can definitely update the
imeOptions
depending onPassword
for example fromIME_FLAG_FORCE_ASCII
:As for
inputType
, we might want to look into updatingImePurpose
to includeDateTime
,Number
,Phone
so that we can show the correct input type from winit. (cc @lukaslihotzki)The text was updated successfully, but these errors were encountered: