Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-31 09:27:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-31 09:27:46 +0300
commit77254df48045508512b3346871ca42e72fdfc83b (patch)
tree91e2c47b170c011e01a15d0143a13e37c3cf9206 /source/blender
parente8cea26bd79555fea5051194b50bd61d9b891baf (diff)
Fix T59293: Can't assign shortcut to undo history
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap_utils.c4
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);
}