Fix #22621 Alt-A toggles panel expand collapse

Patch by John Carpenter

The expand/collapse command don't filter the Alt
modifier and make problem with the animation
shortuct (atl+a).
This commit is contained in:
2010-06-18 20:19:24 +00:00
parent 000d23e05c
commit 615af47559

View 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))