当前位置: 首页 > 文档资料 > A-Frame 中文文档 >

keyboard-shortcuts

优质
小牛编辑
126浏览
2023-12-01

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

Example

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

Properties

PropertyDescriptionDefault Value
enterVREnables the shortcut to press ‘F’ to enter VR.true
resetSensorEnables to shortcut to press ‘Z’ to reset the sensor.true