diff options
author | Julian Eisel <julian@linux-chl2.site> | 2015-04-04 20:17:39 +0300 |
---|---|---|
committer | Julian Eisel <julian@linux-chl2.site> | 2015-04-04 20:17:39 +0300 |
commit | 1604a26fe648ba712cf2cbead2a96dbd0dab817c (patch) | |
tree | d4ec4a976016cb9bcf3f59e41c99fd4369607de2 | |
parent | 59df941ea57770250c59feeed4f7ce72bafd5b60 (diff) |
Fix T44251: Changing views using numpad broken
For KM_ANY I've filtered out every event that has a click type, although
that was only needed for the additional event sent on KM_HOLD. A bit weird
that this only happened on a few machines though.
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index ce9a729a7a9..5fd6342b95e 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -1460,8 +1460,8 @@ static int wm_eventmatch(wmEvent *winevent, wmKeyMapItem *kmi) if (kmitype != KM_ANY) if (winevent->type != kmitype) return 0; - /* KM_ANY excludes click_type events - filter them out */ - if (kmi->val == KM_ANY && winevent->click_type) return 0; + /* KM_ANY excludes KM_HOLD since it's time based and not a real input - filter it out */ + if (kmi->val == KM_ANY && winevent->click_type == KM_HOLD) return 0; if (kmi->val != KM_ANY) if (!ELEM(kmi->val, winevent->val, winevent->click_type)) return 0; |