Numpad Enter
Hey!
We are using a UserControl with a Textbox and we have the logic for pressing Enter in the code behind.
It looks like this:
Numpad enter doesn't trigger PreviewKeyDown and I don't see numpad enter in Noesis::Key enum.
Is there any solution for this?
We are using a UserControl with a Textbox and we have the logic for pressing Enter in the code behind.
It looks like this:
Code: Select all
PreviewKeyDown() += [this](BaseComponent*, const Noesis::KeyEventArgs& e) {
if (e.key == Noesis::Key::Key_Enter)
{
// logic
}Is there any solution for this?
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Numpad Enter
Hi,
Are you using our application framework? Or do you have your own integration implementing the window system?
I checked and Win32 is sending the VK_RETURN when pressing the numpad Enter key, and our Win32Display is mapping that to the Noesis::Key_Return (which is the same as Noesis::Key_Enter).
One thing you have to verify is that the focus is inside the UserControl, otherwise the PreviewKeyDown event won't reach it.
Are you using our application framework? Or do you have your own integration implementing the window system?
I checked and Win32 is sending the VK_RETURN when pressing the numpad Enter key, and our Win32Display is mapping that to the Noesis::Key_Return (which is the same as Noesis::Key_Enter).
One thing you have to verify is that the focus is inside the UserControl, otherwise the PreviewKeyDown event won't reach it.
Who is online
Users browsing this forum: Bing [Bot] and 4 guests