designer ยท console.warn
designer.shortcuts.register: a shortcut is {...
Printed by designer, prefixed [lattice], since 1.89.0.
Warnings reference › designer:shortcut
- Identifier
designer:shortcut- Raised by
- designer
- Since
- 1.89.0
What happened
The designer keeps one documented keyboard shortcut map, and every entry needs an id, the keys as shown to the user and a description. One was missing or not a string, so nothing was registered.
The fix
Pass all three strings, and a run function if the key should do something.
The smallest fix
designer.shortcuts.register({ id: palette.open, keys: Alt+Shift+P, description: Open the palette, run });
Reference
Covered in full at the API reference.