Skip to content

Conversation

@emxsys
Copy link
Member

@emxsys emxsys commented Aug 25, 2018

Description of the Change

Added the ability to pan, zoom and reset the globe using the keyboard.

  • The arrow keys pan the globe
  • The '+' and '-' keys zoom the globe
  • The 'N' key resets the heading to north up
  • The 'R' key resets the heading to north up and the tilt to nadir.

This functionality can be disabled via the KeyboardControls.enabled property.

Why Should This Be In Core?

Many use cases prefer or require keyboard navigation.

Benefits

Keyboard navigation can offer more precision than pointing devices.

Potential Drawbacks

  • The mnemonic key assignments (N and R) are not multilingual or configurable.
  • Requires the setting of the tabIndex property on the WorldWindow canvas.

@emxsys emxsys merged commit f086afa into develop Aug 25, 2018
@emxsys emxsys added this to the Release v1.5 milestone Aug 26, 2018
EMaksymenko added a commit that referenced this pull request Dec 7, 2020
* Added the KeyboardControls module to utils.

* Added the creation of a KeyboardControls object to the WorldWindow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants