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.
Converts a plugin
KeyboardShortcutinto theUndoRedoKeyboardShortcut[]that TerraDraw expects.TerraDraw matches held keys by exact string comparison (unlike this plugin's own controller, which treats
ctrlasctrlKey || metaKey). So a single cross-platform shortcut authored with the primary modifier (ctrl/control/meta) is expanded into two concrete variants —controlandmeta— so the shortcut fires on both Windows/LinuxCtrland macOSCommand.Shortcuts without a primary modifier (e.g. plain keys, or
shift-only) are passed through unchanged.