Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added keyboard navigation capabilities to the globe #845

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ComBatVision
Copy link

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.

* 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
Development

Successfully merging this pull request may close these issues.

None yet

1 participant