Behavior OnKeyDown #4152
Replies: 2 comments 2 replies
-
Thanks @ArchieCoder this is a good idea. Though I think it can be more generalized to just be a This would tie it more into the rest of the Behavior ecosystem. Is this something you'd be interested in making a PR for? I believe we have an example of how to write a TriggerBehaviors in the repo already, it's really just this line that's needed: |
Beta Was this translation helpful? Give feedback.
-
PR submitted. I don't know how to add the documentation. Is it automatically generated? In the JSON file, I specified: https://raw.githubusercontent.com/MicrosoftDocs/WindowsCommunityToolkitDocs/master/docs/behaviors/KeyboardBehaviors.md |
Beta Was this translation helpful? Give feedback.
-
Hi, today I wanted to remove our custom code in our solution to use the ones from the WCT.
I was surprised to not find the behavior about detecting the Enter key on a TextBox or PasswordBox. This is a familiar UX on Login view.
Here is the code used in our project. Feel free to add it to the WCT.
ExecuteCommandOnKeyDownBehavior.txt
Beta Was this translation helpful? Give feedback.
All reactions