private void OnShortcutItemClick(object sender, ShortcutItemClickEventArgs e) { // prevents that a BarManager from a different DockPanel reacts to the shortcut if (!this.Form.ContainsFocus) { e.Cancel = true; } // prevent that the BarManager reacts to e.g. Ctrl+C when the current editor should react to it if (e.Shortcut.Key == (Keys.Control | Keys.C) || e.Shortcut.Key == (Keys.Control | Keys.V)) { Control focusedControl = GetFocus(); if (focusedControl is TextBox || focusedControl is TextEdit) { e.Cancel = true; } } }
void Manager_ShortcutItemClick(object sender, ShortcutItemClickEventArgs e) { return; }