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

ITextInput extensions for interacting with platform soft input (keyboard) #11565

Closed
Tracked by #12004
PureWeen opened this issue Nov 22, 2022 · 1 comment · Fixed by #16572
Closed
Tracked by #12004

ITextInput extensions for interacting with platform soft input (keyboard) #11565

PureWeen opened this issue Nov 22, 2022 · 1 comment · Fixed by #16572
Assignees
Labels
area-keyboard Keyboard, soft keyboard fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 proposal/accepted
Milestone

Comments

@PureWeen
Copy link
Member

PureWeen commented Nov 22, 2022

Description

Implement a set of APIs that allows the user to interact with the Soft Input InputPane Device. These APIs don't have anything to do with a physical InputPane.

MAUI Community Toolkit

MCT implemented these APIs for .NET7 as extension methods https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/extensions/keyboard-extensions. This has allowed users easy access to these APIs until we can release official APIs for .NET8. Once we implemented these features into .NET8 then MCT will deprecate their APIs for the .NET8 builds.

API Changes

We've implemented these inside MCT as extension methods. The plan is to copy the extension methods that are part of MCT into MAUI and then MCT will obsolete them on .NET8.

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/extensions/InputPane-extensions

We can then expose the rest of the APIs through an Info class possibly inside Essentials.

Extension Methods

API Description
ShowSoftInputAsync(this ITextInput) Opens the current software input pane and returns true if successful
HideSoftInputAsync(this ITextInput) Closes the current software input pane and returns true if successful
IsSoftInputShowing(this ITextInput) Indicates if the current software input pane is showing

Related Specs

#11562

Validations

  • Validate APIs on iOS/Catalyst and Android when hardware keyboard is attached.

Usage Scenarios

TBD

Backward Compatibility

N/A

Difficulty

Medium

@PureWeen PureWeen changed the title KeyboardManager for interacting with platform keyboard [WiP] KeyboardManager for interacting with platform keyboard Nov 22, 2022
@PureWeen PureWeen added area-keyboard Keyboard, soft keyboard legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels Nov 22, 2022
@PureWeen PureWeen added this to the Backlog milestone Nov 22, 2022
@ghost
Copy link

ghost commented Nov 22, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@samhouts samhouts modified the milestones: Backlog, .NET 8 Jul 5, 2023
@Redth Redth modified the milestones: .NET 8, .NET 8 GA Jul 12, 2023
@PureWeen PureWeen changed the title [WiP] KeyboardManager for interacting with platform keyboard [WiP] KeyboardManager for interacting with platform soft keyboard manager Jul 24, 2023
@PureWeen PureWeen changed the title [WiP] KeyboardManager for interacting with platform soft keyboard manager [WiP] InputPane extensions for interacting with platform soft keyboard manager Jul 26, 2023
@PureWeen PureWeen changed the title [WiP] InputPane extensions for interacting with platform soft keyboard manager InputPane extensions for interacting with platform soft keyboard manager Jul 26, 2023
@PureWeen PureWeen changed the title InputPane extensions for interacting with platform soft keyboard manager ITextInput extensions for interacting with platform soft input (keyboard) Jul 26, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in MAUI SDK Ongoing Aug 17, 2023
@samhouts samhouts added the fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 label Sep 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 12, 2023
@samhouts samhouts added backport/approved After some discussion or review, this PR or change was approved to be backported. and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels Jan 31, 2024
@samhouts samhouts removed the backport/approved After some discussion or review, this PR or change was approved to be backported. label Jan 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-keyboard Keyboard, soft keyboard fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 proposal/accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants