private void KeyboardShortcutsManager_KeyboardShortcutPressed(object sender, KeyboardShortcutPressedEventArgs e) { LOG.DebugFormat("KeyboardShortcutPressed - KeyboardShortcut: {0}", e.KeyboardShortcut); if (_activeForm == null) { LOG.Error("KeyboardShortcut received but there is no active form"); return; } _activeForm.HandleKeyboardShortcut(e.KeyboardShortcut); }
protected void OnKeyboardShortcutPressed(KeyboardShortcutPressedEventArgs e) { KeyboardShortcutPressed?.Invoke(this, e); }