Merge pull request #31116 from sparkart/add_quit_shortcut
Add Shortcut Settings for Quitting Editor
This commit is contained in:
commit
fa35a73f0a
1 changed files with 3 additions and 3 deletions
|
@ -5948,7 +5948,7 @@ EditorNode::EditorNode() {
|
||||||
recent_scenes->connect("id_pressed", this, "_open_recent_scene");
|
recent_scenes->connect("id_pressed", this, "_open_recent_scene");
|
||||||
|
|
||||||
p->add_separator();
|
p->add_separator();
|
||||||
p->add_item(TTR("Quit"), FILE_QUIT, KEY_MASK_CMD + KEY_Q);
|
p->add_shortcut(ED_SHORTCUT("editor/file_quit", TTR("Quit"), KEY_MASK_CMD + KEY_Q), FILE_QUIT, true);
|
||||||
|
|
||||||
project_menu = memnew(MenuButton);
|
project_menu = memnew(MenuButton);
|
||||||
project_menu->set_flat(false);
|
project_menu->set_flat(false);
|
||||||
|
@ -5982,9 +5982,9 @@ EditorNode::EditorNode() {
|
||||||
p->add_separator();
|
p->add_separator();
|
||||||
|
|
||||||
#ifdef OSX_ENABLED
|
#ifdef OSX_ENABLED
|
||||||
p->add_item(TTR("Quit to Project List"), RUN_PROJECT_MANAGER, KEY_MASK_SHIFT + KEY_MASK_ALT + KEY_Q);
|
p->add_shortcut(ED_SHORTCUT("editor/quit_to_project_list", TTR("Quit to Project List"), KEY_MASK_SHIFT + KEY_MASK_ALT + KEY_Q), RUN_PROJECT_MANAGER, true);
|
||||||
#else
|
#else
|
||||||
p->add_item(TTR("Quit to Project List"), RUN_PROJECT_MANAGER, KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_Q);
|
p->add_shortcut(ED_SHORTCUT("editor/quit_to_project_list", TTR("Quit to Project List"), KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_Q), RUN_PROJECT_MANAGER, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
menu_hb->add_spacer();
|
menu_hb->add_spacer();
|
||||||
|
|
Loading…
Reference in a new issue