-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
android: pressing enter in multiline entry hides keyboard #971
Comments
What is the label on the keyboard button you are tapping? |
Ah I see. It's "OK" instead of "Enter" icon. From #972 video you can see the Samsung keyboard example. I just tried with another keyboard - it's the same: there is no "Enter" button, line breaks on pressing to "OK" and keyboard hides. And now we coming to question about supporting different types of keyboard - only digits, multiline etc |
multiple keyboards will be a later addition as we need to add support to the toolkit for that. |
Fixed for testing on develop |
Cool, thanks! It would be also great to hide keyboard on enter if it's !MultiLine entry. |
Unfortunately the keyboard currently does not know about the details of the entry. That’s where the bigger fix comes in. |
I think it could be done simply in https://github.com/fyne-io/fyne/blob/develop/widget/entry.go#L400 if device, ok := fyne.CurrentDevice().(mobile.Device); ok {
device.HideVirtualKeyboard()
} Focus will still be at entry, but at least keyboard will hide. |
That's a clever workaround. Not entirely certain if we should but I will look into it :) |
Let's come back top this if your #975 does not resolve the issue |
Describe the bug:
Pressing enter on the virtual keyboard when typing in entry hides it. It should hide keyboard only when MultiLine is false.
To Reproduce:
Steps to reproduce the behaviour:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: