소스 검색

* BugFix: Correct the MacOS hotkey workaround causing eg. the Windows key to potentially be processed as part of a hotkey combo.

Robert MacGregor 3 년 전
부모
커밋
e686a9850e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Engine/source/windowManager/sdl/sdlWindow.cpp

+ 2 - 0
Engine/source/windowManager/sdl/sdlWindow.cpp

@@ -87,6 +87,7 @@ namespace
       }
 
       // NOTE: For MacOS, this will treat command as Left or Right CTRL
+#ifdef TORQUE_OS_MAC
       if (mod & KMOD_LGUI)
       {
          ret |= SI_LCTRL;
@@ -98,6 +99,7 @@ namespace
          ret |= SI_RCTRL;
          ret |= SI_CTRL;
       }
+#endif
 
       return ret;
    }