Shortcuts

Shortcuts shortcuts - List of shortcuts to watch for. See “Shortcuts” in the notes for defining shortcuts.

docs.derivative.ca/index.php?ti … ard_In_DAT

What does this mean? Can you give an example?

Hi michela,

in the docs it says:

“For example, ctrl.shift.a the modifier keys are ctrl and shift, and the trigger key is a. This shortcut will be activated when one of the ctrl and shift keys are pressed and the trigger key, a is pressed down. If any other modifier keys are pressed, the shortcut will not be detected.”

In other words:

You take a keyboardin DAT and for example put the following in the shortcut parameter:
“ctrl.shift.a ctrl.shift.b”

Now, when you press “ctrl + shift + a” or “ctrl + shift + b”, the function “onShortcut” in “keyboardin1_callbacks” gets called with shortcutName “ctrl.shift.a” or “ctrl.shift.b”.

I attached a small example:
Open the Textport and press “ctrl + shift + a” or “ctrl + shift + b”.

I hope this answers your question.

Best wishes,
David
shortcut example.toe (3.98 KB)