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

Add invoke on-screen keyboard on desktop #109546

Closed
omatt opened this issue Aug 15, 2022 · 3 comments
Closed

Add invoke on-screen keyboard on desktop #109546

omatt opened this issue Aug 15, 2022 · 3 comments
Labels
a: desktop Running on desktop 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 engine flutter/engine repository. See also e: labels. r: solved Issue is closed as solved

Comments

@omatt
Copy link

omatt commented Aug 15, 2022

Use case

There are use cases where Flutter apps are used in Kiosks running desktop platforms that needs a virtual keyboard for input. Currently, the on-screen keyboard needs to be enabled in desktops to appear. Another workaround on Windows platform is to switch the device into tablet mode to automatically display the softkeyboard when a TextField is active.

The current behavior is understandable since most desktop machines use a physical keyboard.

Proposal

Add a function similar to System.Diagnostics.Process.Start("osk.exe"); - where the on-screen keyboard can be invoked in Windows using C#. It'll be helpful if this can be also applied in macOS and Linux as well.

@maheshmnj maheshmnj added the in triage Presently being triaged by the triage team label Aug 16, 2022
@maheshmnj
Copy link
Member

HI @omatt, Thanks for filing the issue. That sounds like a valid proposal.

cc: @justinmc

@maheshmnj maheshmnj added 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 a: desktop Running on desktop and removed in triage Presently being triaged by the triage team labels Aug 16, 2022
@danagbemava-nc danagbemava-nc added the engine flutter/engine repository. See also e: labels. label Aug 16, 2022
@gspencergoog
Copy link
Contributor

If you need to do this, you should be able to do it via the Dart FFI interface (if you want to make a call to a Windows API), or via Dart's Process API to launch osk.exe as you describe.

At this time, we're not planning on adding a separate API for this purpose. (Desktop Triage).

@maheshmnj maheshmnj added the r: solved Issue is closed as solved label Aug 19, 2022
@github-actions
Copy link

github-actions bot commented Sep 2, 2022

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 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: desktop Running on desktop 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 engine flutter/engine repository. See also e: labels. r: solved Issue is closed as solved
Projects
None yet
Development

No branches or pull requests

4 participants