[macOS] Fix Quick Open shortcut conflict

This commit is contained in:
passivestar 2024-08-31 18:08:23 +04:00
parent 61598c5c88
commit 8befcc1113

View file

@ -5462,7 +5462,8 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
preview_camera = memnew(CheckBox); preview_camera = memnew(CheckBox);
preview_camera->set_text(TTR("Preview")); preview_camera->set_text(TTR("Preview"));
preview_camera->set_shortcut(ED_SHORTCUT("spatial_editor/toggle_camera_preview", TTR("Toggle Camera Preview"), KeyModifierMask::CMD_OR_CTRL | Key::P)); // Using Control even on macOS to avoid conflict with Quick Open shortcut.
preview_camera->set_shortcut(ED_SHORTCUT("spatial_editor/toggle_camera_preview", TTR("Toggle Camera Preview"), KeyModifierMask::CTRL | Key::P));
vbox->add_child(preview_camera); vbox->add_child(preview_camera);
preview_camera->set_h_size_flags(0); preview_camera->set_h_size_flags(0);
preview_camera->hide(); preview_camera->hide();