Fix T59293: Can't assign shortcut to undo history

This commit is contained in:
Campbell Barton 2019-01-31 17:27:46 +11:00
parent e8cea26bd7
commit 77254df480
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #59293, Cannot assign shortcut to undo history
1 changed files with 3 additions and 1 deletions

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