How can I detect a keypress on the key shown on the picture below in WPF? Both Key.Oem7
and Key.OemQuotes
work on my computer, but on another computer it is Key.Oem5
or something totally different. Is there a system-independent way?
Asked
Active
Viewed 2,534 times
2

user1151923
- 1,853
- 6
- 28
- 44
-
1Your problem is caused by the fact that different manufacturers place different characters on that key in different keyboards. To unify the `Key` value, target a character on the key, *not* the key itself. – Sheridan Aug 26 '14 at 13:36
-
@Sheridan Unfortunately not an option, I need exactly that key. – user1151923 Aug 26 '14 at 13:38
-
But that key is not the same on all keyboards... are you *really* saying that you want users to hit the key underneath the Escape key, regardless of which characters it relates to? – Sheridan Aug 26 '14 at 14:05
-
Well if that is so, then you really have a problem on your hands. Good luck. – Sheridan Aug 26 '14 at 14:41
-
Take a look at See http://stackoverflow.com/a/22861921/361899 – aybe Aug 26 '14 at 19:07
-
1possible duplicate of [How do I create a keybinding to the backslash key in WPF?](http://stackoverflow.com/questions/22855857/how-do-i-create-a-keybinding-to-the-backslash-key-in-wpf) – aybe Aug 26 '14 at 19:07