x4js - v2.3.17
    Preparing search index...

    Type Alias ShortcutCallback

    ShortcutCallback: (ev: KeyboardEvent) => void

    Keyboard shortcuts.

    A shortcut is a sequence of keys, written as it is read: "Mod+C", "Shift+Mod+Z", "Delete", "Alt+ArrowLeft". The modifiers are Shift, Ctrl, Cmd, Alt and Mod: the key of the commands, which is Ctrl on Windows and Linux, and Cmd on a Mac.

    This class only holds a list of shortcuts and finds the one a keyboard event is. It is used by Component.addShortcut (the shortcuts of a view, while the focus is in it) and by Application.addShortcut (those of the whole application).

    Type Declaration

      • (ev: KeyboardEvent): void
      • Parameters

        • ev: KeyboardEvent

        Returns void