- use defines for wmKeyMapItem & wmEvent alt/shift/ctrl/oskey
[blender.git] / source / blender / editors / interface / interface_panel.c
index 890a2b4ee7f29366e55634c13beec9b70f230acb..546f4f0b6398741d75f79d388fe27e5a4e49e4d3 100644 (file)
@@ -1042,7 +1042,7 @@ int ui_handler_panel_region(bContext *C, wmEvent *event)
                                inside= 1;
                
                if(inside && event->val==KM_PRESS) {
-                       if(event->type == AKEY && !ELEM4(1, event->ctrl, event->oskey, event->shift, event->alt)) {
+                       if(event->type == AKEY && !ELEM4(KM_MOD_FIRST, event->ctrl, event->oskey, event->shift, event->alt)) {
                                
                                if(pa->flag & PNL_CLOSEDY) {
                                        if((block->maxy <= my) && (block->maxy+PNL_HEADER >= my))