소스 검색

default tool should be selection not hand in view mode

zsviczian 1 년 전
부모
커밋
4c5e196f25
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/App.tsx

+ 2 - 2
src/components/App.tsx

@@ -2918,7 +2918,7 @@ class App extends React.Component<AppProps, AppState> {
       if (event.key === KEYS.K && !event.altKey && !event[KEYS.CTRL_OR_CMD]) {
         if (isLaserPointerActive(this.state)) {
           this.setActiveTool({
-            type: this.state.viewModeEnabled ? "hand" : "selection",
+            type: "selection",
           });
         } else {
           this.setActiveTool({ type: "laser" });
@@ -2929,7 +2929,7 @@ class App extends React.Component<AppProps, AppState> {
       if (this.state.viewModeEnabled) {
         //revert to hand in case a key is pressed (K is handled above)
         if (event.key !== KEYS.K) {
-          this.setActiveTool({ type: "hand" });
+          this.setActiveTool({ type: "selection" });
         }
         return;
       }