Back to Aframe

keyboard-shortcuts

docs/components/keyboard-shortcuts.md

1.7.1642 B
Original Source

The keyboard-shortcuts component toggles global keyboard shortcuts. The keyboard-shortcuts component applies only to the <a-scene> element.

Example

html
<a-scene keyboard-shortcuts="enterVR: false; exitVR: false;"></a-scene>

Properties

PropertyDescriptionDefault Value
enterVREnables the shortcut to press 'F' to enter VR.true
exitVREnables the shortcut to press 'Escape' to exit VR.true