pixso.keyboard
The pixso.keyboard
object provides methods related to Pixso editor keyboard events.
addListener
- Type:
addListener: (event: 'keydown'|'keyup', options: KeyboardEventOptions, callback: () => void)
- Type Declaration: KeyboardEventOptions
Listen for keyboard events in the Pixso editor.
When calling
pixso.keyboard.addListener
to listen for keyboard events, the listened shortcut keys may conflict with the native functions of the Pixso editor. If there is a conflict, a warning message will be printed in the console.
removeListener
- Type:
removeListener: (event: 'keydown'|'keyup', options: KeyboardEventOptions, callback: () => void)
- Type Declaration: KeyboardEventOptions
Remove keyboard event listening from Pixso editor.