I would like to handle the key that was left to the Right cntrl key which is equivalent to Mouse right click.
+2
A:
private void Form1_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Apps)
{
// the key in question was pressed (key code = 93)
}
}
Darin Dimitrov
2010-09-01 09:53:40
It is giving nothing as you said i write like this in bettwen that code contextmenu.show() but it is not getting displayed
Dorababu
2010-09-01 10:02:31
Your localisation/keyboard settings may be precluding it. Alternatively you may have a weird keyboard. Also, I've never heard it referred to as an 'Apps' key before?
Rushyo
2010-09-01 10:06:18
I didn't get yoy what you said
Dorababu
2010-09-01 10:14:22
A:
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.
cofiem
2010-09-01 09:58:53