Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 protected void OnKeyboardShortcutPressed(KeyboardShortcutPressedEventArgs e)
 {
     KeyboardShortcutPressed?.Invoke(this, e);
 }