diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-31 09:27:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-31 09:27:46 +0300 |
commit | 77254df48045508512b3346871ca42e72fdfc83b (patch) | |
tree | 91e2c47b170c011e01a15d0143a13e37c3cf9206 /source/blender/windowmanager/intern | |
parent | e8cea26bd79555fea5051194b50bd61d9b891baf (diff) |
Fix T59293: Can't assign shortcut to undo history
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_keymap_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap_utils.c b/source/blender/windowmanager/intern/wm_keymap_utils.c index 412a35f2daa..8cec6c42607 100644 --- a/source/blender/windowmanager/intern/wm_keymap_utils.c +++ b/source/blender/windowmanager/intern/wm_keymap_utils.c @@ -170,7 +170,9 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname) SpaceLink *sl = CTX_wm_space_data(C); /* Window */ - if (STRPREFIX(opname, "WM_OT")) { + if (STRPREFIX(opname, "WM_OT") || + STRPREFIX(opname, "ED_OT_undo")) + { if (STREQ(opname, "WM_OT_tool_set_by_name")) { km = WM_keymap_guess_from_context(C); } |