Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the Key Enumeration of Keys on top of Non-Numpad Number Keys?

I seem can't find the Key enumerations of some keys below. I also have read through this : http://msdn.microsoft.com/en-us/library/system.windows.forms.keys.aspx and still didn't find any (or maybe I missed it)

enter image description here

Questions :

  1. What are the Key enumeration of the red-boxed keys in the picture above?
  2. There's Oemtilde in the given link, any idea what key is that?

Thank you.

(My programming language is C# and I code in WPF)

like image 556
Moses Aprico Avatar asked Dec 11 '25 19:12

Moses Aprico


1 Answers

I dont think there are seperate enums for these keys. These are Key.D1 to Key.D0 and Key.Oem3 (for tilda). You can identify which one was pressed by checking Keyboard.Modifiers == ModifierKeys.Shift at any point in your code.

i.e if pressed key is Key.D1 and Keyboard.Modifiers is ModifierKeys.Shift that means '!' was pressed

like image 118
Nitin Avatar answered Dec 15 '25 09:12

Nitin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!