Merge pull request #96388 from passivestar/quick-open-shortcut-conflict

[macOS] Fix Quick Open shortcut conflict
This commit is contained in:
Rémi Verschelde 2024-09-03 11:43:45 +02:00
commit 8eb106e318
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -5462,7 +5462,8 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
preview_camera = memnew(CheckBox);
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);
preview_camera->set_h_size_flags(0);
preview_camera->hide();