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>2012-10-29 12:59:47 +0400
committerTon Roosendaal <ton@blender.org>2012-10-29 12:59:47 +0400
commit23929c4c53a45691e3ca4491862d6a5a9efb4fb7 (patch)
treefdd3765f9a0d582551fece0500bc9a63928ed2d3 /source/blender/windowmanager
parent74c60dc5bfdd73b468d998c2cf1b361ac08dd544 (diff)
Bugfix #32996
Backspace event is messed up - it was inserting weird characters in the editors. Added check for proper keypress now. Will check real issue later.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index b55fbea5a88..ab3efdefec1 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -1331,7 +1331,8 @@ static int wm_eventmatch(wmEvent *winevent, wmKeyMapItem *kmi)
/* the matching rules */
if (kmitype == KM_TEXTINPUT)
- if (ISTEXTINPUT(winevent->type) && (winevent->ascii || winevent->utf8_buf[0])) return 1;
+ if (winevent->val == KM_PRESS)
+ if (ISTEXTINPUT(winevent->type) && (winevent->ascii || winevent->utf8_buf[0])) return 1;
if (kmitype != KM_ANY)
if (winevent->type != kmitype) return 0;