From d92523d0b41e977ca64f227bb6799d42d3ed7904 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Thu, 3 Jul 2025 19:32:31 +0200 Subject: [PATCH] Fix #138909: Use space_type_set_or_cycle for Ctrl-Tab in Graph Editor Our keymap, when pressing Ctrl-Tab in Graph Editor, currently changes the space type to "Dope Sheet" with "wm.context_set_enum". But this method is not aware of subtypes. This PR instead changes the space type using "screen.space_type_set_or_cycle". While in Timeline it will go to Graph Editor, press again to go back to Timeline. While in Dope Sheet you go to Graph Editor, press again to go to Dope Sheet. Pull Request: https://projects.blender.org/blender/blender/pulls/141360 --- scripts/presets/keyconfig/keymap_data/blender_default.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/presets/keyconfig/keymap_data/blender_default.py b/scripts/presets/keyconfig/keymap_data/blender_default.py index d09a0c077ef..24f7cf18ed1 100644 --- a/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -1846,8 +1846,8 @@ def km_graph_editor_generic(params): {"properties": [("only_active", False)]}), ("anim.channels_select_filter", {"type": 'F', "value": 'PRESS', "ctrl": True}, None), *_template_items_hide_reveal_actions("graph.hide", "graph.reveal"), - ("wm.context_set_enum", {"type": 'TAB', "value": 'PRESS', "ctrl": True}, - {"properties": [("data_path", "area.type"), ("value", 'DOPESHEET_EDITOR')]}), + ("screen.space_type_set_or_cycle", {"type": 'TAB', "value": 'PRESS', "ctrl": True}, + {"properties": [("space_type", 'DOPESHEET_EDITOR')]}), ]) return keymap