Function mirrorArrowKeys

  • Swaps the arrow keys "left" and "right" in a harmonized shortcut (e.g. "cmd left" → "cmd right") – the keyboard handling of a right-to-left table, so that → moves backwards in reading direction.

    Parameters

    • shortcut: string

      a harmonized shortcut (harmonizeShortcut)

    Returns string

    the shortcut with swapped arrow keys

    Example

    mirrorArrowKeys("left");       // "right"
    mirrorArrowKeys("cmd right"); // "cmd left"

    Since

    1.1.98