Browse Source

Update osdialog

tags/v1.0.0
Andrew Belt 6 years ago
parent
commit
c6742a5461
2 changed files with 4 additions and 6 deletions
  1. +1
    -1
      dep/osdialog
  2. +3
    -5
      src/window.cpp

+ 1
- 1
dep/osdialog

@@ -1 +1 @@
Subproject commit f2624f7cee98aa51b80ffbd9efd47495638890da
Subproject commit 06d7e4220deae2f238c35e01a0b108da05f39745

+ 3
- 5
src/window.cpp View File

@@ -99,11 +99,9 @@ static void mouseButtonCallback(GLFWwindow *win, int button, int action, int mod
Window *window = (Window*) glfwGetWindowUserPointer(win);
#if defined ARCH_MAC
// Remap Ctrl-left click to right click on Mac
if (button == GLFW_MOUSE_BUTTON_LEFT) {
if (mods & GLFW_MOD_CONTROL) {
button = GLFW_MOUSE_BUTTON_RIGHT;
mods &= ~GLFW_MOD_CONTROL;
}
if (button == GLFW_MOUSE_BUTTON_LEFT && (mods & GLFW_MOD_CONTROL)) {
button = GLFW_MOUSE_BUTTON_RIGHT;
mods &= ~GLFW_MOD_CONTROL;
}
#endif



Loading…
Cancel
Save