Commit: 77254df48045508512b3346871ca42e72fdfc83b
Author: Campbell Barton
Date:   Thu Jan 31 17:27:46 2019 +1100
Branches: master
https://developer.blender.org/rB77254df48045508512b3346871ca42e72fdfc83b

Fix T59293: Can't assign shortcut to undo history

===================================================================

M       source/blender/windowmanager/intern/wm_keymap_utils.c

===================================================================

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);
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to