private void KeyboardShortcutsManager_KeyboardShortcutPressed(object?sender, KeyboardShortcutPressedEventArgs e)
        {
            LOG.Debug($"{nameof( KeyboardShortcutsManager_KeyboardShortcutPressed )} - KeyboardShortcut: {e.KeyboardShortcut}");

            if (_activeForm == null)
            {
                LOG.Error("KeyboardShortcut received but there is no active form");
                return;
            }

            _activeForm.HandleKeyboardShortcut(e.KeyboardShortcut);
        }
Esempio n. 2
0
 protected void OnKeyboardShortcutPressed(KeyboardShortcutPressedEventArgs e)
 {
     KeyboardShortcutPressed?.Invoke(this, e);
 }