title | type | layout | parent_section | source_code |
---|---|---|---|---|
keyboard-shortcuts |
components |
docs |
components |
src/components/scene/keyboard-shortcuts.js |
The keyboard-shortcuts component toggles global keyboard shortcuts. The
keyboard-shortcuts component applies only to the <a-scene>
element.
<a-scene keyboard-shortcuts="enterVR: false; exitVR: false;"></a-scene>
Property | Description | Default Value |
---|---|---|
enterVR | Enables the shortcut to press 'F' to enter VR. | true |
exitVR | Enables the shortcut to press 'Escape' to exit VR. | true |