开发者

How can i handle the key that was left to the Right control key

I would l开发者_如何学运维ike to handle the key that was left to the Right cntrl key which is equivalent to Mouse right click.


private void Form1_KeyUp(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Apps)
    {
        // the key in question was pressed (key code = 93)
    }
}


This page about Key Events in SeaMonkey has this info:

Platform special keys (Windows key, contextual menu key on Windows, Macintosh startup key, monitor control keys, etc.) do not propagate events. They should be handled in platform code if necessary.

So you may not be able to bind to that particular key. However, there may be something available at quirksmode.org to help you out.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜