I know i can use below code to determine the Enter key in keyboard
if (e.Key == Key.Return)
{
// do something
}
But i want to know what is the code for "+" and "-" ?
Can anyone help me please.
There are two sets. One in the keyboard side and the other in the keypad side.
For keboard use Key.OemPlus
and Key.OemMinus
and for keypad one use Key.Add
and Key.Subtract
.
The entire list of keys is here: http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx
OemPlus
and OemMinus
are correct, like Nikhil said.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With