flixel icon indicating copy to clipboard operation
flixel copied to clipboard

MKI FlxTextInput Suggestions

Open Geokureli opened this issue 11 months ago • 4 comments

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.

Geokureli avatar Jan 24 '25 17:01 Geokureli

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 avatar Jan 24 '25 17:01 mikaib

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.

mikaib avatar Jan 24 '25 17:01 mikaib

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

Geokureli avatar Jan 24 '25 17:01 Geokureli

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.

mikaib avatar Jan 24 '25 18:01 mikaib