* Added additional shift space to fullscreen/tile window spaces. So much
[blender.git] / source / blender / src / editscreen.c
index 51ce341b1ffa24d44352e5451a9eada2f7ebb6c0..70a7e7744304f488b02673faf35ecd8226aa8212 100644 (file)
@@ -1366,11 +1366,18 @@ void screenmain(void)
                        }
                }
                else if (event==SPACEKEY) {
-                       if((G.obedit && G.obedit->type==OB_FONT && g_activearea->spacetype==SPACE_VIEW3D)||g_activearea->spacetype==SPACE_TEXT||g_activearea->spacetype==SPACE_SCRIPT);
-                       else if(G.qual==0) {
-                               if(val) toolbox_n();
+                       if(val && (G.qual & LR_SHIFTKEY)) {
+                               area_fullscreen();
+                               g_activearea= NULL;
                                towin= 0;
                        }
+                       else {
+                               if((G.obedit && G.obedit->type==OB_FONT && g_activearea->spacetype==SPACE_VIEW3D)||g_activearea->spacetype==SPACE_TEXT||g_activearea->spacetype==SPACE_SCRIPT);
+                               else if(G.qual==0) {
+                                       if(val) toolbox_n();
+                                       towin= 0;
+                               }
+                       }
                }
                else if(ELEM(event, UPARROWKEY, DOWNARROWKEY)) {
                        if(val && (G.qual & LR_CTRLKEY)) {