[Bf-committers] delkey/extendedascii bug fixed.

Daniel Fairhead bf-committers@blender.org
Fri, 9 Jan 2004 18:26:17 +0200

Sorry for delay.

this patch should do all extended ascii, and work for delete key. I have tested
with NL and US keymappings, and both work (well, except in US there are no
extended keys). This is actually an improvement on before I added the previous 
patch, because extended ascii didn't work in textbuttons then at all. Now they


heres the fix:

Index: mainqueue.c
RCS file: /cvsroot/bf-blender/blender/source/blender/src/mainqueue.c,v
retrieving revision 1.7
diff -u -r1.7 mainqueue.c
--- mainqueue.c 7 Jan 2004 23:33:40 -0000       1.7
+++ mainqueue.c 9 Jan 2004 16:20:36 -0000
@@ -57,7 +57,7 @@
                *val= mainqueue[nevents].val;
                *ascii= mainqueue[nevents].ascii;
-               if((*ascii<30)||(*ascii>126)) *ascii=0;
+               if((*ascii<32)||(*ascii==127)) *ascii=0;
                return mainqueue[nevents].event;
        } else
                return 0;