I have a window that include UserControl then I need to track Ctrl + i
in order to do it I use this approach
public RecordTab()
{
KeyDown += new KeyEventHandler(RecordTab_KeyDown);
...
}
public void RecordTab_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.I)
{
Console.WriteLine("HERE!!!");
}
else
{
Console.WriteLine("NOTHING!!!");
}
}
When I click any buttons nothing happens
What am I doing wrong?