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:
authorTon Roosendaal <ton@blender.org>2006-11-26 19:03:36 +0300
committerTon Roosendaal <ton@blender.org>2006-11-26 19:03:36 +0300
commitbb802607eb5a31b89f39705d9b2e07df7ad437ec (patch)
treeb3049d53c8f682fedc95715f7a8555e279320529 /source/blender/src/drawtext.c
parent4d1425f510f953fe57e0881aba43d1e8c620ce5e (diff)
Bugfix #1676
Ancient bug: texteditor input was limited to "isprint()" characters, the default non-accented simple ascii set. I've removed that. Now we still have a conflict with hotkey handling, so ALT+character input won't work. But, for keyboards that have special character keys from itself, this patch will allow typing them in Text now.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r--source/blender/src/drawtext.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c
index 748cb0fffe4..d8e2107e145 100644
--- a/source/blender/src/drawtext.c
+++ b/source/blender/src/drawtext.c
@@ -1417,8 +1417,10 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
int do_draw=0, p;
/* smartass code to prevent the CTRL/ALT events below from not working! */
- if(!ispunct(ascii))
- if (!isprint(ascii) || (G.qual & ~LR_SHIFTKEY)) ascii= 0;
+ if(G.qual & (LR_ALTKEY|LR_CTRLKEY))
+ if(!ispunct(ascii))
+ if(!isprint(ascii))
+ ascii= 0;
text= st->text;