From 1e666dd1cdfbf35c4f4b7f625ad3a55a2543cb50 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 9 Jul 2003 20:09:07 +0000 Subject: [PATCH] - this smartass hack, which was removed from editscreen.c, was needed for the textwindow. doh! now you can press alt+p in textwindow again! --- source/blender/src/drawtext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index 20321b74b78..6623b101208 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -887,6 +887,9 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt) return; } + /* smartass code to prevent the events below from not working! */ + if (!isprint(ascii) || (G.qual & ~LR_SHIFTKEY)) ascii= 0; + text= st->text; if (!text) {