Two in one:
[blender.git] / source / blender / src / toets.c
index 45810d1274558b58ef9064fbb0531c1f373ccd1d..355a1535f42dac2242a6241bf76e74cf9f431199 100644 (file)
@@ -681,20 +681,6 @@ int blenderqread(unsigned short event, short val)
                                }
                        }
                }
-               else if(G.qual==LR_SHIFTKEY) {  // ??
-                       if(G.obedit)
-                               exit_editmode(EM_FREEDATA|EM_FREEUNDO|EM_WAITCURSOR); // freedata, and undo
-                       if(G.f & G_FACESELECT)
-                               set_faceselect();
-                       if(G.f & G_VERTEXPAINT)
-                               set_vpaint();
-                       if(G.f & G_TEXTUREPAINT)
-                               set_texturepaint();
-                       if(G.f & G_WEIGHTPAINT)
-                               set_wpaint();
-                       if(G.f & G_SCULPTMODE)
-                               set_sculptmode();
-               }
                break;
 
        case BACKSPACEKEY:
@@ -727,7 +713,8 @@ int blenderqread(unsigned short event, short val)
                break;
        case IKEY:
                if(textediting==0 && textspace==0 && !ELEM3(curarea->spacetype, SPACE_FILE, SPACE_IMASEL, SPACE_NODE)) {
-                       if(G.qual==0) {
+                       if(G.f & G_SCULPTMODE) return 1;
+                       else if(G.qual==0) {
                                common_insertkey();
                                return 0;
                        }