keydown method
dynamic
keydown(
- dynamic event
Implementation
keydown(event) {
if (scope.enabled == false) return;
// TODO
// window.removeEventListener( 'keydown', keydown );
if (_keyState != State.none) {
return;
} else if (event.code == scope.keys[State.rotate] && !scope.noRotate) {
_keyState = State.rotate;
} else if (event.code == scope.keys[State.zoom] && !scope.noZoom) {
_keyState = State.zoom;
} else if (event.code == scope.keys[State.pan] && !scope.noPan) {
_keyState = State.pan;
}
}