From dbf61504f27dbb118d827adde3ca9aace6015c70 Mon Sep 17 00:00:00 2001 From: Dario Siroki Date: Mon, 20 Jul 2020 08:10:55 +0200 Subject: [PATCH] arrow keys for navigation instead of WASD --- README.md | 2 +- imports/editor/3d/SseEditor3d.jsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 8bbecc6f..24abffae 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ marking) - Mouse middle button (or Ctrl+Click): Change the target of the camera - Mouse right button: Used to select multiple points at the same time depending on the current Selection Tool and Selection Mode. - - WASD keys: Move through the scene + - Arrow keys: Move through the scene ### PCD support diff --git a/imports/editor/3d/SseEditor3d.jsx b/imports/editor/3d/SseEditor3d.jsx index 7b62279f..45fd32f1 100644 --- a/imports/editor/3d/SseEditor3d.jsx +++ b/imports/editor/3d/SseEditor3d.jsx @@ -572,8 +572,6 @@ export default class SseEditor3d extends React.Component { // enable panning and keyboard controls this.orbiter.enablePan = true; this.orbiter.enableKeys = true; - // override arrow keys (default) to WASD - this.orbiter.keys = {LEFT: 65, UP: 87, RIGHT: 68, BOTTOM: 83}; // set pan button to null, default is RMB, but that's used for labeling this.orbiter.mouseButtons = {ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: null};