Max correctly pointed out that this will cause unexpected change in application SDL-1.2
authorSam Lantinga
Tue, 22 Sep 2009 02:25:59 +0000
branchSDL-1.2
changeset 42302bb68bacdc54
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
     1.1 --- a/src/video/quartz/SDL_QuartzEvents.m	Tue Sep 22 02:22:14 2009 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzEvents.m	Tue Sep 22 02:25:59 2009 +0000
     1.3 @@ -785,7 +785,7 @@
     1.4                      if ( SDL_getenv("SDL_HAS3BUTTONMOUSE") ) {
     1.5                          DO_MOUSE_DOWN (SDL_BUTTON_LEFT);
     1.6                      } else {
     1.7 -                        if ( NSControlKeyMask & current_mods ) {
     1.8 +                        if ( NSCommandKeyMask & current_mods ) {
     1.9                              last_virtual_button = SDL_BUTTON_RIGHT;
    1.10                              DO_MOUSE_DOWN (SDL_BUTTON_RIGHT);
    1.11                          }