开发者

How to know when the question mark key is pressed in silverlight?

开发者 https://www.devze.com 2022-12-28 05:36 出处:网络
I have a key down event, how can开发者_高级运维 I know when the ? key is pressed (on all platforms)?You are going to need compare the PlatformKeyCode property from the KeyEventArgs. Just know that thi

I have a key down event, how can开发者_高级运维 I know when the ? key is pressed (on all platforms)?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消