From e2a75814ac9f25b0e625f74a57c48dc18f56adcc Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Fri, 26 May 2023 09:03:08 +0200 Subject: [PATCH] Animation: change Slider Popup menu hotkeys Since the change in #106113 the Slider menu which was called with the D hotkey was no longer in any menu. This made it really hard to discover. Since there is now more than 1 menu popup, it needs more than 1 hotkey. The idea is that the ALT key is used in combination with keys that are easy to reach with the left hand. Right now it is ALT+S and ALT+D but if needed in the future it can be extended to f, w and e Pull Request: https://projects.blender.org/blender/blender/pulls/107866 --- .../keyconfig/keymap_data/blender_default.py | 3 ++- scripts/startup/bl_ui/space_graph.py | 14 -------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/scripts/presets/keyconfig/keymap_data/blender_default.py b/scripts/presets/keyconfig/keymap_data/blender_default.py index 2bdeb9ed6f1..ba6dc35614e 100644 --- a/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -1828,7 +1828,8 @@ def km_graph_editor(params): ("graph.paste", {"type": 'V', "value": 'PRESS', "ctrl": True}, None), ("graph.paste", {"type": 'V', "value": 'PRESS', "shift": True, "ctrl": True}, {"properties": [("flipped", True)]}), - op_menu("GRAPH_MT_slider", {"type": 'D', "value": 'PRESS'}), + op_menu("GRAPH_MT_key_smoothing", {"type": 'S', "value": 'PRESS', "alt": True}), + op_menu("GRAPH_MT_key_blending", {"type": 'D', "value": 'PRESS', "alt": True}), ("graph.previewrange_set", {"type": 'P', "value": 'PRESS', "ctrl": True, "alt": True}, None), ("graph.view_all", {"type": 'HOME', "value": 'PRESS'}, None), ("graph.view_all", {"type": 'NDOF_BUTTON_FIT', "value": 'PRESS'}, None), diff --git a/scripts/startup/bl_ui/space_graph.py b/scripts/startup/bl_ui/space_graph.py index 55e5145adda..9615f0ffd8b 100644 --- a/scripts/startup/bl_ui/space_graph.py +++ b/scripts/startup/bl_ui/space_graph.py @@ -372,19 +372,6 @@ class GRAPH_MT_key_snap(Menu): layout.operator("graph.snap_cursor_value", text="Cursor Value to Selection") -class GRAPH_MT_slider(Menu): - bl_label = "Slider Operators" - - def draw(self, _context): - layout = self.layout - layout.operator_context = 'INVOKE_DEFAULT' - layout.operator("graph.breakdown", text="Breakdown") - layout.operator("graph.blend_to_neighbor", text="Blend to Neighbor") - layout.operator("graph.blend_to_default", text="Blend to Default Value") - layout.operator("graph.ease", text="Ease") - layout.operator("graph.gaussian_smooth", text="Smooth") - - class GRAPH_MT_view_pie(Menu): bl_label = "View" @@ -526,7 +513,6 @@ classes = ( GRAPH_MT_key_snap, GRAPH_MT_key_smoothing, GRAPH_MT_key_blending, - GRAPH_MT_slider, GRAPH_MT_delete, GRAPH_MT_context_menu, GRAPH_MT_channel_context_menu,