question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can i raise TextBox KeyDown event?

See original GitHub issue

I try:

<TextBox KeyDown="{s:Action MyKeyDown}" />
private void MyKeyDown(object sender, KeyEventArgs e)
{
    // stuff...
}

doesn’t work.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
canton7commented, Sep 3, 2020

It works for me. Here’s a project which demonstrates it working:

TestProject.zip

Please provide a minimal reproducible example which demonstrates your issue.

0reactions
kaisamecommented, Sep 7, 2020

thanks.That is what I need

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextBox.KeyDown event (Access)
KeyDown event occurs when the user presses a key while a form or control has the focus. This event also occurs if you...
Read more >
How do I capture the Text of a TextBox during a KeyDown ...
After the event exits, the pressed key is added to the .Text property, so the next time the KeyDown event is raised, you...
Read more >
Sending key down events to TextBox - Forums
I have tried creating a new KeyEventArg and raising that event on the TextBox instance. ((Button)FindName("TestButton")). Click += (sender, ...
Read more >
Some Keys do not raise the TextBox.KeyDown event #7844
Currently the KeyDown event for the TextBox is not raised when the Key.Back, Key.Delete, Key.Right, Key.Left keys are pressed.
Read more >
TextBox - How to get new value in onKeyDown
I know that the parameter of the onKeyDown() event handler holds the (old and) new value of e.g. a textbox.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found