private void DefaultBrowser_KeyDown1(object sender, KeyEventArgs e) { if (Keyboard.Modifiers == ModifierKeys.Control && e.Key == Key.F4) { try { this.ToolbarControl_AfterActionEventHandler(toolbarControl, new AtomusControlArgs("Close", null)); //((IAction)this).ControlAction(_ToolbarControl, )); } catch (Exception ex) { (this).WindowsMessageBoxShow(Application.Current.Windows[0], ex); } } if (Keyboard.Modifiers == ModifierKeys.Control && e.Key == Key.Tab && FocusManager.GetFocusedElement(this) != this.tabControl) { if (this.tabControl.SelectedIndex + 1 == this.tabControl.Items.Count) { this.tabControl.SelectedIndex = 0; } else { this.tabControl.SelectedIndex += 1; } } #if DEBUG if (Keyboard.Modifiers == ModifierKeys.Control && Keyboard.Modifiers == ModifierKeys.Shift && e.Key == Key.D) { DiagnosticsTool.ShowForm(); } #endif if (Keyboard.Modifiers == ModifierKeys.Control && Keyboard.Modifiers == ModifierKeys.Shift && e.Key == Key.T) { DiagnosticsTool.ShowForm(); } }