Max correctly pointed out that this will cause unexpected change in application SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 22 Sep 2009 02:25:59 +0000
branchSDL-1.2
changeset 4230 2bb68bacdc54
parent 4229 68ee433ec474
child 4231 2d5c44f1be14
Max correctly pointed out that this will cause unexpected change in application behavior and conflict with binding ctrl-click in some existing applications.
src/video/quartz/SDL_QuartzEvents.m
--- a/src/video/quartz/SDL_QuartzEvents.m	Tue Sep 22 02:22:14 2009 +0000
+++ b/src/video/quartz/SDL_QuartzEvents.m	Tue Sep 22 02:25:59 2009 +0000
@@ -785,7 +785,7 @@
                     if ( SDL_getenv("SDL_HAS3BUTTONMOUSE") ) {
                         DO_MOUSE_DOWN (SDL_BUTTON_LEFT);
                     } else {
-                        if ( NSControlKeyMask & current_mods ) {
+                        if ( NSCommandKeyMask & current_mods ) {
                             last_virtual_button = SDL_BUTTON_RIGHT;
                             DO_MOUSE_DOWN (SDL_BUTTON_RIGHT);
                         }