What is Silverlight Dash Code "-"

I tried Key.Subtract, but I think this is a version of numpad. I am looking for one after a null key.

I want to handle it in an event KeyDown.

thank

+3
source share
1 answer

Quick fixing shows that it passes through Key.Unknown, as well as other keys such as [and]

So it looks like you cannot (easily) distinguish when this key is pressed.

The MSDN page for System.Windows.Input.Keylists all values, which is much shorter than the version of the .NET framework .

However, if you look e.PlatformKeyCode, this may give you the necessary meaning. However, help for this condition:

key code, .

:

, Macintosh Windows. , "v" ( 51, , , ). PlatformKeyCode, 86. , , SCROLL LOCK Microsoft Windows. Key , PlatformKeyCode - 145 Windows. , Microsoft Windows, . " " MSDN Library. , Macintosh, . Keyboard Layout Services Reference ( ) - Apple Developer Connection.

(Chrome Windows XP) "-" 189

+4

Source: https://habr.com/ru/post/1739192/


All Articles