Skip to content
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

MKI FlxTextInput Suggestions #3342

Open
Geokureli opened this issue Jan 24, 2025 · 4 comments
Open

MKI FlxTextInput Suggestions #3342

Geokureli opened this issue Jan 24, 2025 · 4 comments

Comments

@Geokureli
Copy link
Member

Geokureli commented Jan 24, 2025

These all seem pretty reasonable

  1. Insert key support
  2. Page up and page down for multiline inputs
  3. Possibly "Escape" to lose focus of the input field.
@mikaib
Copy link

mikaib commented Jan 24, 2025

Also will add, from the demo it seems like you can listen to certain events like "cursor up" or "cursor down"
Is there also something like "focus" or "unfocus"? I haven't gone through the code so I figure it might be easier to just ask here.

@mikaib
Copy link

mikaib commented Jan 24, 2025

Also, for people with screenreaders, the mentioned improvements were:

  1. Insert key support
  2. Page up and page down for multiline inputs
  3. Possibly "Escape" to lose focus of the input field.

@Geokureli
Copy link
Member Author

Also will add, from the demo it seems like you can listen to certain events like "cursor up" or "cursor down" Is there also something like "focus" or "unfocus"? I haven't gone through the code so I figure it might be easier to just ask here.

Things like "cursor up" are text-input events dispatched from the global TextInput manager, to the actual input, where focus changes/requests are something the instance tells to the input manager. It would make sense to have a separate onFocusChange signal in the manager, I think there likely already is one

@mikaib
Copy link

mikaib commented Jan 24, 2025

Also will add, from the demo it seems like you can listen to certain events like "cursor up" or "cursor down" Is there also something like "focus" or "unfocus"? I haven't gone through the code so I figure it might be easier to just ask here.

Things like "cursor up" are text-input events dispatched from the global TextInput manager, to the actual input, where focus changes/requests are something the instance tells to the input manager. It would make sense to have a separate onFocusChange signal in the manager, I think there likely already is one

Lovely.

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

No branches or pull requests

2 participants