Skip to content
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

There's no way to permanently dismiss soft keyboard #53398

Closed
Matt1700 opened this issue Mar 27, 2020 · 8 comments
Closed

There's no way to permanently dismiss soft keyboard #53398

Matt1700 opened this issue Mar 27, 2020 · 8 comments
Labels
a: text input Entering text in a text field or keyboard related problems c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter framework flutter/packages/flutter repository. See also f: labels. r: fixed Issue is closed as already fixed in a newer version

Comments

@Matt1700
Copy link

Currently, there's no way to permanently dismiss the software keyboard in Flutter while maintaining the focus on a text field.

Use case

I'm creating a custom keyboard for an Android kiosk. The keyboard sends events through a Flutter plugin that uses Android runtime.exec("input keyevent KEY_CODE").

This means that the focus needs to stay on the text field in order for the custom keyboard to work.
I've tried calling SystemChannels.textInput.invokeMethod('TextInput.hide'); when a text field is updated but somehow once every few inputs the keyboard shows up for a fraction of a second.

Proposal

I'd like the TextField widget to have a property hideSoftKeyboard that defaults to false.

@TahaTesser TahaTesser added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. c: proposal A detailed proposal for a change to Flutter c: new feature Nothing broken; request for a new capability labels Mar 27, 2020
@Amitpatil215
Copy link
Contributor

#16863

@marcglasberg
Copy link

#76072

@jpnurmi
Copy link
Member

jpnurmi commented Jul 1, 2021

FYI, TextInputType.none was introduced in #83974:

TextField(
  keyboardType: TextInputType.none,
  ...
)

@creativecreatorormaybenot
Copy link
Contributor

@TahaTesser This can be closed (fixed by #83974 as pointed out by @jpnurmi).

@TahaTesser
Copy link
Member

@creativecreatorormaybenot
Thanks!

@TahaTesser TahaTesser added the r: fixed Issue is closed as already fixed in a newer version label Aug 27, 2021
@TahaTesser
Copy link
Member

@jpnurmi
If you see similar issues that need closing, feel free to ping, thanks

@jpnurmi
Copy link
Member

jpnurmi commented Aug 27, 2021

Thanks! Will do 👍

@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: text input Entering text in a text field or keyboard related problems c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter framework flutter/packages/flutter repository. See also f: labels. r: fixed Issue is closed as already fixed in a newer version
Projects
None yet
Development

No branches or pull requests

6 participants