You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using the PasswordBox control and it works fine, but on MacOs, KeyDown event is not triggered when an Enter is pressed. I have been playing with a customized version of the PasswordBoxHandler (which seems to trigger the event only when the text is changed, not when special keys such as Enter is pressed), but haven't been able to do it.
Any pointers as to what I should do to solve this minor issue would be appreciated. Thanks!!
Expected Behavior
I would expect KeyDown to be triggered when Enter is pressed, as it is on Windows/Linux
Actual Behavior
It is not triggered.
Steps to Reproduce the Problem
Create a PasswordBox, attach a KeyDown event listener, and do something when Enter is pressed
Code that Demonstrates the Problem
PasswordBox passwordBox = new PasswordBox();
passwordBox.KeyDown += OnKeyPressed;
...
protected void OnKeyPressed(object sender, KeyEventArgs e)
{
if (e.Key == Keys.Enter)
{
//This condition is never met on MacOS
}
}
Specifications
Version: 2.8
Platform(s): Mac64
Operating System(s): MacOS
The text was updated successfully, but these errors were encountered:
Thanks for the issue report and the workaround. The PasswordBox on macOS uses a custom field editor so there's no way for us to trap the keydown in the usual way. Handling the enter key as you have done sounds like a reasonable thing to add, and it looks like we might be able to add support for arrow keys and escape.
Hello,
I am using the PasswordBox control and it works fine, but on MacOs, KeyDown event is not triggered when an Enter is pressed. I have been playing with a customized version of the PasswordBoxHandler (which seems to trigger the event only when the text is changed, not when special keys such as Enter is pressed), but haven't been able to do it.
Any pointers as to what I should do to solve this minor issue would be appreciated. Thanks!!
Expected Behavior
I would expect KeyDown to be triggered when Enter is pressed, as it is on Windows/Linux
Actual Behavior
It is not triggered.
Steps to Reproduce the Problem
Create a PasswordBox, attach a KeyDown event listener, and do something when Enter is pressed
Code that Demonstrates the Problem
Specifications
The text was updated successfully, but these errors were encountered: