diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-28 07:33:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-28 07:40:12 +0300 |
commit | 13f292d10d3bb19aa9aa694cecbde499f93e7a54 (patch) | |
tree | b12dffe51f9649c24642f18131b47bedca169438 /source/blender/windowmanager/WM_keymap.h | |
parent | 2e22cfd08a0d589e8894e322ed29d5c3227ca04d (diff) |
Gizmo: only highlight when held modifier keys are used
Check the current events modifiers against the gizmo keymap,
only highlighting when keymap items match.
Needed to resolve T63996
Diffstat (limited to 'source/blender/windowmanager/WM_keymap.h')
-rw-r--r-- | source/blender/windowmanager/WM_keymap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_keymap.h b/source/blender/windowmanager/WM_keymap.h index 53488cd1f71..4a9a9cf8705 100644 --- a/source/blender/windowmanager/WM_keymap.h +++ b/source/blender/windowmanager/WM_keymap.h @@ -114,6 +114,8 @@ void WM_keymap_add_context_enum_set_items(wmKeyMap *keymap, wmKeyMap *WM_keymap_guess_from_context(const struct bContext *C); wmKeyMap *WM_keymap_guess_opname(const struct bContext *C, const char *opname); +bool WM_keymap_uses_event_modifier(wmKeyMap *keymap, const int event_modifier); + void WM_keymap_fix_linking(void); /* Modal Keymap */ |