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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-23 05:06:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-23 05:06:38 +0400
commit29417887d7e78f31cbefc5d86c156237484e837a (patch)
treeaa4a19790e7304137e3679a07bbe3bfb563aeab2 /source
parentd541a200c2fcac497ec2a52e6d3c8f31f7032f29 (diff)
fix for own mistake r41192
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index c798b284c7b..3e9bce651a8 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -2616,9 +2616,7 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, int type, int U
/* exclude arrow keys, esc, etc from text input */
if(type==GHOST_kEventKeyUp) {
- if (event.ascii<32 && event.ascii > 0) {
- event.ascii= '\0';
- }
+ event.ascii= '\0';
/* ghost should do this already for key up */
if (event.utf8_buf[0]) {
@@ -2626,6 +2624,10 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, int type, int U
}
event.utf8_buf[0]= '\0';
}
+ else if (event.ascii<32 && event.ascii > 0) {
+ event.ascii= '\0';
+ /* TODO. should this also zero utf8?, dont for now, campbell */
+ }
/* modifiers */
/* assigning both first and second is strange - campbell */