Skip to content

Commit 811ce36

Browse files
committed
Merge pull request godotengine#93675 from Calinou/3d-editor-align-transform-with-view-add-alternative-shortcut
Add alternative shortcut for Align Transform to View in the 3D editor
2 parents d71c85c + 6932630 commit 811ce36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/plugins/node_3d_editor_plugin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8644,7 +8644,8 @@ Node3DEditor::Node3DEditor() {
86448644
ED_SHORTCUT("spatial_editor/insert_anim_key", TTR("Insert Animation Key"), Key::K);
86458645
ED_SHORTCUT("spatial_editor/focus_origin", TTR("Focus Origin"), Key::O);
86468646
ED_SHORTCUT("spatial_editor/focus_selection", TTR("Focus Selection"), Key::F);
8647-
ED_SHORTCUT("spatial_editor/align_transform_with_view", TTR("Align Transform with View"), KeyModifierMask::ALT + KeyModifierMask::CMD_OR_CTRL + Key::M);
8647+
ED_SHORTCUT_ARRAY("spatial_editor/align_transform_with_view", TTR("Align Transform with View"),
8648+
{ int32_t(KeyModifierMask::ALT | KeyModifierMask::CMD_OR_CTRL | Key::KP_0), int32_t(KeyModifierMask::ALT | KeyModifierMask::CMD_OR_CTRL | Key::M) });
86488649
ED_SHORTCUT("spatial_editor/align_rotation_with_view", TTR("Align Rotation with View"), KeyModifierMask::ALT + KeyModifierMask::CMD_OR_CTRL + Key::F);
86498650
ED_SHORTCUT("spatial_editor/freelook_toggle", TTR("Toggle Freelook"), KeyModifierMask::SHIFT + Key::F);
86508651
ED_SHORTCUT("spatial_editor/decrease_fov", TTR("Decrease Field of View"), KeyModifierMask::CMD_OR_CTRL + Key::EQUAL); // Usually direct access key for `KEY_PLUS`.

0 commit comments

Comments
 (0)