From b4c380acb433eddfeb3e7ebee7efcff9c3ce308d Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 23 Aug 2023 09:40:27 +0200 Subject: [PATCH] Fix #109427: Shortcut missing in animation editors channel context menu Specifying the correct operator context (`INVOKE_REGION_CHANNELS` in this case) is mandatory, otherwise looking up the shortcut in `wm_keymap_item_find_props` will fetch the wrong region (`RGN_TYPE_WINDOW` not `RGN_TYPE_CHANNELS`) and thus wont find the keymap item in that region keymap. This was already done for the other menus, not for the context menu though. Pull Request: https://projects.blender.org/blender/blender/pulls/111376 --- scripts/startup/bl_ui/space_dopesheet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/startup/bl_ui/space_dopesheet.py b/scripts/startup/bl_ui/space_dopesheet.py index 037a1120330..05ce9c200b0 100644 --- a/scripts/startup/bl_ui/space_dopesheet.py +++ b/scripts/startup/bl_ui/space_dopesheet.py @@ -719,6 +719,8 @@ class DOPESHEET_MT_channel_context_menu(Menu): # This menu is used from the graph editor too. is_graph_editor = context.area.type == 'GRAPH_EDITOR' + layout.operator_context = 'INVOKE_REGION_CHANNELS' + layout.separator() layout.operator("anim.channels_view_selected")