Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Selten <michel@mselten.demon.nl>2003-11-26 00:38:37 +0300
committerMichel Selten <michel@mselten.demon.nl>2003-11-26 00:38:37 +0300
commitd14e86564d6a38e0604303fd170399eac6621b42 (patch)
tree333c5173a10ee2d6d45d18997578a982e925999c /source/blender/src/drawtext.c
parent9bcf2dcd1c81bc3d8b00ff1e4e1aff59d10dff23 (diff)
When no text file is open in the text editor, ALT-O did not work.
Fixed it. We really should look at the entire event system there for the key selections. Can be cleaned up a bit - not important right now.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r--source/blender/src/drawtext.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c
index e8079c83c7e..cc4e11d3495 100644
--- a/source/blender/src/drawtext.c
+++ b/source/blender/src/drawtext.c
@@ -1036,6 +1036,11 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
allqueue(REDRAWHEADERS, 0);
}
}
+ else if (event==OKEY) {
+ if (G.qual & LR_ALTKEY) {
+ activate_fileselect(FILE_SPECIAL, "LOAD TEXT FILE", G.sce, add_text_fs);
+ }
+ }
}
return;
}