Fix #22621 Alt-A toggles panel expand collapse
authorDiego Borghetti <bdiego@gmail.com>
Fri, 18 Jun 2010 20:19:24 +0000 (20:19 +0000)
committerDiego Borghetti <bdiego@gmail.com>
Fri, 18 Jun 2010 20:19:24 +0000 (20:19 +0000)
Patch by John Carpenter

The expand/collapse command don't filter the Alt
modifier and make problem with the animation
shortuct (atl+a).

source/blender/editors/interface/interface_panel.c

index e598574ed242bd50db3bc9fad77058c4232b935f..dae2e35f99b030f5dac9708fe9ca945dea2a09cb 100644 (file)
@@ -1059,7 +1059,7 @@ int ui_handler_panel_region(bContext *C, wmEvent *event)
                                inside= 1;
                
                if(inside && event->val==KM_PRESS) {
-                       if(event->type == AKEY && !ELEM3(1, event->ctrl, event->oskey, event->shift)) {
+                       if(event->type == AKEY && !ELEM4(1, event->ctrl, event->oskey, event->shift, event->alt)) {
                                
                                if(pa->flag & PNL_CLOSEDY) {
                                        if((block->maxy <= my) && (block->maxy+PNL_HEADER >= my))