Skip to content

Conversation

@Berstanio
Copy link
Contributor

This PR is based on #7670.
The commit to review is 4f75a18.
I'm opening this as a draft for initial feedback.

This PR elevates the new API introduced in #7004 to make it easily accessible for use in scene2d.
This PR adds new fields to TextField, to make use of all features provided by the new API. Specifically autocompleteOptions, keyboardType and preventAutoCorrection.
The API supports placeholder, the messageText was used for that now.
The OnscreenKeyboard method was splitted in two (close/show). This is not strictly necessary, but imo leads to a cleaner API.
The default keyboard used can be toggled globally via TextField#DEFAULT_ONSCREEN_KEYBOARD. Note, that Input#setOnscreenKeyboardVisible and Input#openTextInputField are mutually exclusive and should not be used together.

@NathanSweet fyi, because it is scene2d

@NathanSweet
Copy link
Member

TextField changes look good! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants