I’ve tried Key.Subtract but I think that is the numpad version. I’m looking for the one after the zero key.
I wish to handle it in a KeyDown event.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A quick debug shows the that it comes through as
Key.Unknownas do other keys such as[and]So it looks like you can’t (easily) distinguish when this key is pressed.
The MSDN page for
System.Windows.Input.Keyenumeration lists all the values, which is significantly shorter than the .NET framework version.However, if you look at
e.PlatformKeyCodethis might give you the value you need. However, the help for this states:The remarks are more extensive:
On my setup (Chrome in Windows XP) “-” is 189