C# KeyDown Event multiple Keys plus ControlKey
You can get Ctrl, Shift etc... using properties in KeyEventArgs object
http://msdn.microsoft.com/en-us/library/system.windows.forms.keyeventargs_properties(v=vs.90).aspx
void Control_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.F4)
{
// Be happy
}
}
131072 == (int) Keys.Control
so
131137 (100000000001000001 binary) == (int) (Keys.Control | Keys.A)
and you can put something like that
private void myControl_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyData == (Keys.A | Keys.Control)) {
...
}