-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Flutter OnScreen Keyboard opens on physical key press #51478
Comments
Same issue |
Hi @SebastianRuettger, |
Hey, I've changed jobs and have no access to the device and the appAm 25.08.2020 12:56 schrieb darshankawar <notifications@github.com>:
Hi @SebastianRuettger,
Can you please confirm if you still experience the issue on latest Stable version ?
Thanks.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
i have same problem with flutter 1.17.5. |
I have migrate to flutter 1.20.3 and the problem still present on android. I have a home screen and when i scan with a barcode device plugged with phone, the keyboard keep open after navigation or after dismiss a previous screen keyboard. For resolve the problem, i need back and return to application on android with application manager. The used device => Unitech PA760 |
I debuged. |
i have same problem with flutter 1.22.1 |
I've just encountered this in Flutter 1.22.4. This is a major problem for any apps integrated with external input devices like barcode scanners. Has anyone found a suitable workaround that can be used until this is resolved? Currently, I'm resorting to hiding the keyboard after each scan but it causes the keyboard to flash on screen each time which is jarring. UPDATE: Originally I was testing with the Android emulator. I've just tested now with two physical devices and cannot reproduce on those as of yet. |
Same issue: Also very important for me as POS systems manufacturer. OnScreen keyboard is not showing until any TextField input got focus. After that, keyboard will be shown on every keyboard input, also when no TextField widgets are on current Scaffold. |
@darshankawar able to reproduce the issue on 1.22.4 on physical device. |
@aakashbapna Are you performing any workaround currently? |
@fredrikjacobson no workaround except switching to beta channel to atleast get the RawKeyEvent. Hiding the keyboard is very jarring experience for the user, if I don't hide the keyboard |
I have a completely different use case. The app is a game that brings up a After bringing up the
|
TextInputType.none: #83974 |
With some debugging, I found that the
For example, my printed values are following:
So, this condition is also always true. flutter/packages/flutter/lib/src/widgets/editable_text.dart Lines 2507 to 2516 in 361d416
And, in flutter/packages/flutter/lib/src/widgets/editable_text.dart Lines 2334 to 2345 in 361d416
I checked both Is it a normal behavior that the selection change is evaluated always as true with an external keyboard? (I have not overall understanding for logics around those codes.) |
Above issue is ocurred only with Samsung keyboard. |
I am facing same issue with Gboard ! |
Related Android Bug: https://issuetracker.google.com/issues/300236999 |
It's 2024 and they have not fixed a simple bug which clearly is affecting a people in a serious way. |
Closing because this is fixed on master, see flutter/engine#49829. Before this fix, the IME internal state was reset when a text field is focused but not when it was unfocused. Depending on the IME this results on the IME still reacting based on the configuration of the last focused text field. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I have a device that uses a laserscanner to scan barcodes and outputs the result as simulated keypresses. I've used this with a RawKeyboardListener and it worked fine. Since then I've added a login screen to the app, that is only shown if the user hasn't logged in. If the login screen has been shown and disposed the onscreen keyboard opens when i press the physical scanner button. This should not happen and doesn't happen if the login screen hasn't been shown. My guess is, that there still are some remains of the textfields used in the login screen, after it is disposed. I've tried setting the FocusNodes for the Textfields and then disposing them in the dispose method, but that didn't work
I've asked a question on StackOverflow: https://stackoverflow.com/questions/60417173/flutter-onscreen-keyboard-opens-on-physical-key-press
Steps to Reproduce
Expected results: button is pressed but only the keyevents are fired
Actual results: the onscreen keyboard opens
Logs
The text was updated successfully, but these errors were encountered: