@watergis/maplibre-gl-terradraw
    Preparing search index...
    • Converts a plugin KeyboardShortcut into the UndoRedoKeyboardShortcut[] that TerraDraw expects.

      TerraDraw matches held keys by exact string comparison (unlike this plugin's own controller, which treats ctrl as ctrlKey || metaKey). So a single cross-platform shortcut authored with the primary modifier (ctrl/control/meta) is expanded into two concrete variants — control and meta — so the shortcut fires on both Windows/Linux Ctrl and macOS Command.

      Shortcuts without a primary modifier (e.g. plain keys, or shift-only) are passed through unchanged.

      Parameters

      • shortcut: KeyboardShortcut

        a plugin keyboard shortcut (e.g. defaultModeKeyboardShortcuts.undo)

      Returns UndoRedoKeyboardShortcut[]

      one or two TerraDraw undo/redo shortcut variants