private void LogTabWindow_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.W && e.Control) { if (CurrentLogWindow != null) { CurrentLogWindow.Close(); } } else if (e.KeyCode == Keys.Tab && e.Control) { SwitchTab(e.Shift); } else { if (CurrentLogWindow != null) { CurrentLogWindow.LogWindow_KeyDown(sender, e); } } }