views:

54

answers:

1

Hello,

I have a key down event, How can I know when the question mark ? key is pressed (on all platforms) ?

Cheers

+1  A: 

You are going to need compare the PlatformKeyCode property from the KeyEventArgs. Just know that this codes are OS specific, so you need to use the BrowserInformation class from System.Windows.Browser to detect the client OS.

Here you can get Windows Virtual-Key Codes MSDN

alejandrobog