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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-02 23:29:42 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-02 23:29:42 +0400
commit725207a1e6ba949834210c8230dd5602ea9728ca (patch)
tree2dcd7a89cc192f42215cea0e4647930bb37d122f /source/blender/windowmanager
parent069f46ac89871ab5df5fce83230ff6a5ba0e5bc9 (diff)
Possible fix for #29436: issue with external numpad, that is generating unknown
key events. Disable using these as "key modifier".
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 5d48a3c7a7f..9d8f68115cf 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -2667,6 +2667,11 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, int type, int U
key we don't want the key modifier */
if(event.keymodifier == event.type)
event.keymodifier= 0;
+ /* this case happened with an external numpad, it's not really clear
+ why, but it's also impossible to map a key modifier to an unknwon
+ key, so it shouldn't harm */
+ if(event.keymodifier == UNKNOWNKEY)
+ event.keymodifier= 0;
/* if test_break set, it catches this. XXX Keep global for now? */
if(event.type==ESCKEY)