[Approved] Add a behavior (or attached property) to allow users the ability to close the soft keyboard when clicking outside of a view #967
Closed
PureWeen
started this conversation in
New Feature Discussions
Replies: 4 comments 6 replies
-
I agree! Let's introduce these behaviors in toolkit to enable our developer community while preserving and continually encouraging accessibility |
Beta Was this translation helpful? Give feedback.
0 replies
-
@PureWeen, so far this issue only happens on android? |
Beta Was this translation helpful? Give feedback.
6 replies
-
I approve this feature ✅ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are a number of users that want to be able to tap into the nothingness and close the soft keyboard.
dotnet/maui#12002 (comment)
We didn't copy this behavior over from XF because the mechanism used to implement this behavior was to make the
PageRenderer
focusable/clickable which wreaked havoc on accessibility.I have a proposal here for some APIs we could add to MAUI
dotnet/maui#12003
dotnet/maui#11983
I feel like this type of behavior should live inside the community toolkit, so it can be refined and added to out of band from the MAUI. We can release these initial features inside a NET 7 version of the community toolkit. Since this is added on behavior it seems like it would survive and iterate better inside the toolkit vs inside the core code.
The core MAUI code just needs to provide the APIs necessary to enable this type of feature.
I already have a behavior built here
https://github.com/PureWeen/ShanedlerSamples/tree/main/ShanedlerSamples/Library/TapToCloseBehavior
and the iOS code can be easily removed from MAUI core and put into a behavior as well.
Beta Was this translation helpful? Give feedback.
All reactions