bdlukaa / fluent_ui

Implements Microsoft's WinUI3 in Flutter.
https://bdlukaa.github.io/fluent_ui/
BSD 3-Clause "New" or "Revised" License
2.98k stars 465 forks source link

🐛 Handle enter click in a NumberBox and add onEditingComplete event #1060

Closed WinXaito closed 6 months ago

WinXaito commented 6 months ago

Describe the bug When a NumberBox has the focus, a click on enter should exit the focus.

It would also be great to add onEditingComplete.

bdlukaa commented 6 months ago

I just debugged the issue and noticed that onEditingComplete is being the root of the issue. We provide it internally, but when not provided the Enter key exists the focus. onEditingComplete also overrides the default behavior of handling according to the TextInputAction.