Table of Contents

Class ShortcutHelper

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Represents a helper to manipulate shortcut keys used on views.

public class ShortcutHelper
Inheritance
ShortcutHelper
Inherited Members

Properties

Shortcut

This is the global setting that can be used as a global shortcut to invoke the action on the view.

ShortcutAction

The action to run if the Shortcut is defined.

ShortcutTag

The keystroke combination used in the Shortcut as string.

Methods

CheckKeysFlagRange(Key, Key, Key)

Lookup for a Key on range of keys.

FindAndOpenByShortcut(KeyEvent, View)

Allows a view to run a ShortcutAction if defined.

GetKeyToString(Key, out Key)

Return key as string.

GetModifiersKey(KeyEvent)

Gets the key with all the keys modifiers, especially the shift key that sometimes have to be injected later.

GetShortcutFromTag(ustring, ustring)

Allows to retrieve a Key from a ShortcutTag

GetShortcutTag(Key, ustring)

Get the Shortcut key as string.

PostShortcutValidation(Key)

Used at key up validation.

PreShortcutValidation(Key)

Used at key down or key press validation.