Keyboard Shortcut

The Keyboard Shortcut behavior creates a user defined shortcut in the project and triggers behaviors when the shortcut is triggered with an external hardware keyboard or when selected in the iOS keyboard shortcuts menu.

⚠️ Warning: This feature is only fully supported on iOS 14.0 and above.

 

Property Description
Key

Select any of the special keys on the keyboard to listen to: Up ArrowLeft ArrowRight Arrow, Down ArrowEscapePage UpPage Down and Delete.

Or you can select Character and enter a single character on the keyboard to listen for like a or d.

Discoverability

The shortcut will be discoverable on the iOS shortcuts menu which can be shown when holding the  key on the keyboard. You can edit the title and the subtitle of the shortcut. 

58E8E4F0-79F0-4743-BDC3-09E67D5DA674.jpeg

In this case, you can perform ⌘ + ↓ to trigger our custom shortcut. In exported projects, the app name will be displayed instead of hyperPad.

Repeatable

If toggled on, the action will repeatedly trigger while holding the shortcut.

Key Modifiers

Special key(s) that need to be held to trigger the shortcut. You can use multiple key modifiers.

For example, for undo, the  key modifier is used. For redo, the  and shift key modifiers are used.


22EEC9DE-2240-42FD-AA0D-047AC82198EC.jpeg

For the Caps Lock modifier, the user does not need to hold the key for the shortcut to register. Caps lock just needs to be active.

 

Example: Resetting Player Position
The user can perform ⌘ + R to reset the player's position.

61339DEB-F482-440A-BBFF-95B272058950.png

0 Comments

Article is closed for comments.