Page MenuHome

control-q.patch

File Metadata

Author
gsr b3d (gsrb3d)
Created
Nov 13 2013, 1:08 PM

control-q.patch

Index: source/blender/src/drawscript.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/drawscript.c,v
retrieving revision 1.8
diff -u -p -r1.8 drawscript.c
--- source/blender/src/drawscript.c 11 Jun 2005 05:30:14 -0000 1.8
+++ source/blender/src/drawscript.c 13 Feb 2006 22:00:25 -0000
@@ -145,7 +145,7 @@ void winqreadscriptspace(struct ScrArea
}
}
else {
- if (event == QKEY)
+ if ((event == QKEY) && (G.qual & LR_CTRLKEY))
if (val && okee("Quit Blender")) exit_usiblender();
}
Index: source/blender/src/drawtext.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/drawtext.c,v
retrieving revision 1.54
diff -u -p -r1.54 drawtext.c
--- source/blender/src/drawtext.c 9 Oct 2005 18:47:07 -0000 1.54
+++ source/blender/src/drawtext.c 13 Feb 2006 22:00:26 -0000
@@ -1441,7 +1441,9 @@ void winqreadtextspace(ScrArea *sa, void
}
}
else if (event==QKEY) {
+ if (G.qual & LR_CTRLKEY) {
if(okee("Quit Blender")) exit_usiblender();
+ }
}
else if (event==NKEY) {
if (G.qual & LR_ALTKEY) {
@@ -1638,7 +1640,9 @@ void winqreadtextspace(ScrArea *sa, void
}
break; /* BREAK P */
case QKEY:
- if(okee("Quit Blender")) exit_usiblender();
+ if (G.qual == LR_CTRLKEY) {
+ if(okee("Quit Blender")) exit_usiblender();
+ }
break; /* BREAK Q */
case RKEY:
if (G.qual == LR_ALTKEY) {
Index: source/blender/src/editscreen.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editscreen.c,v
retrieving revision 1.123
diff -u -p -r1.123 editscreen.c
--- source/blender/src/editscreen.c 13 Feb 2006 19:27:16 -0000 1.123
+++ source/blender/src/editscreen.c 13 Feb 2006 22:00:26 -0000
@@ -1337,7 +1337,9 @@ void screenmain(void)
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(val) {
- if(okee("Quit Blender")) exit_usiblender();
+ if (G.qual & LR_CTRLKEY) {
+ if(okee("Quit Blender")) exit_usiblender();
+ }
}
towin= 0;
}
Index: source/blender/src/header_info.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/header_info.c,v
retrieving revision 1.79
diff -u -p -r1.79 header_info.c
--- source/blender/src/header_info.c 10 Feb 2006 21:10:58 -0000 1.79
+++ source/blender/src/header_info.c 13 Feb 2006 22:00:27 -0000
@@ -886,7 +886,7 @@ static uiBlock *info_filemenu(void *arg_
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Quit Blender| Q", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 13, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Quit Blender|Ctrl Q", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 13, "");
uiBlockSetDirection(block, UI_DOWN);
uiTextBoundsBlock(block, 80);

Event Timeline