maui
maui copied to clipboard
External Keyboard doesn't trigger the ReturnCommand with ReturnType="Go" on Entry
Description
When using an Entry on Android with ReturnType="Go" and a ReturnCommand it doesn't get called when using an external keyboard. The phone keyboard on the other hand works normally and triggers the command.
This worked fine in our Xamarin Forms app (that we are now trying to migrate to maui). This feature is important to us because we use Yubikey USB-C for Auth and they behave as a Keyboard input on Android devices.
Steps to Reproduce
Steps for bug (external keyboard):
- Run app and enter some text on Entry
- Press "Enter" on an external keyboard (for example using an Emulator on a computer and using the computer's keyboard)
- Result: Instead of executing the command the app changes Focus to the next item (in this case it's the Switch)
Steps that work (internal keyboard):
- Run app and enter some text on Entry
- Press the submit button using the "internal" keyboard
- Result: Command executes as it should
Link to public reproduction project repository
https://github.com/dinisvieira/maui-external-keyboard-android/blob/main/
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 and 13 (possibly all others)
Did you find any workaround?
Haven't found an workaround yet.
Relevant log output
No response
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on Android 14.0-API34, not repro on iOS 17.0 with below Project: MauiAppExternalKeyboard.zip
Any news on this?