Fix T59293: Can't assign shortcut to undo history
authorCampbell Barton <ideasman42@gmail.com>
Thu, 31 Jan 2019 06:27:46 +0000 (17:27 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 31 Jan 2019 06:27:46 +0000 (17:27 +1100)
source/blender/windowmanager/intern/wm_keymap_utils.c

index 412a35f..8cec6c4 100644 (file)
@@ -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);
                }