fix to the fix, and removed some conflicting shorcuts
This commit is contained in:
parent
7e50a9a2e8
commit
1e095cf397
2 changed files with 4 additions and 3 deletions
|
@ -115,6 +115,7 @@ bool EditorSettings::_get(const StringName& p_name,Variant &r_ret) const {
|
||||||
continue; //not changed from default, don't save
|
continue; //not changed from default, don't save
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_line("SAVING: "+E->key());
|
||||||
arr.push_back(E->key());
|
arr.push_back(E->key());
|
||||||
arr.push_back(sc->get_shortcut());
|
arr.push_back(sc->get_shortcut());
|
||||||
}
|
}
|
||||||
|
@ -983,7 +984,7 @@ void EditorSettings::get_shortcut_list(List<String> *r_shortcuts) {
|
||||||
|
|
||||||
void EditorSettings::set_optimize_save(bool p_optimize) {
|
void EditorSettings::set_optimize_save(bool p_optimize) {
|
||||||
|
|
||||||
optimize_save=true;
|
optimize_save=p_optimize;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorSettings::_bind_methods() {
|
void EditorSettings::_bind_methods() {
|
||||||
|
|
|
@ -499,7 +499,7 @@ ShaderEditor::ShaderEditor() {
|
||||||
edit_menu->set_pos(Point2(5,-1));
|
edit_menu->set_pos(Point2(5,-1));
|
||||||
edit_menu->set_text(TTR("Edit"));
|
edit_menu->set_text(TTR("Edit"));
|
||||||
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/undo", TTR("Undo"), KEY_MASK_CMD|KEY_Z), EDIT_UNDO);
|
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/undo", TTR("Undo"), KEY_MASK_CMD|KEY_Z), EDIT_UNDO);
|
||||||
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/redo", TTR("Redo"), KEY_MASK_CMD|KEY_MASK_SHIFT|KEY_Z), EDIT_REDO);
|
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/redo", TTR("Redo"), KEY_MASK_CMD|KEY_Y), EDIT_REDO);
|
||||||
edit_menu->get_popup()->add_separator();
|
edit_menu->get_popup()->add_separator();
|
||||||
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/cut", TTR("Cut"), KEY_MASK_CMD|KEY_X), EDIT_CUT);
|
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/cut", TTR("Cut"), KEY_MASK_CMD|KEY_X), EDIT_CUT);
|
||||||
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/copy", TTR("Copy"), KEY_MASK_CMD|KEY_C), EDIT_COPY);
|
edit_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/copy", TTR("Copy"), KEY_MASK_CMD|KEY_C), EDIT_COPY);
|
||||||
|
@ -519,7 +519,7 @@ ShaderEditor::ShaderEditor() {
|
||||||
search_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/replace", TTR("Replace.."), KEY_MASK_CMD|KEY_R), SEARCH_REPLACE);
|
search_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/replace", TTR("Replace.."), KEY_MASK_CMD|KEY_R), SEARCH_REPLACE);
|
||||||
search_menu->get_popup()->add_separator();
|
search_menu->get_popup()->add_separator();
|
||||||
// search_menu->get_popup()->add_item("Locate Symbol..",SEARCH_LOCATE_SYMBOL,KEY_MASK_CMD|KEY_K);
|
// search_menu->get_popup()->add_item("Locate Symbol..",SEARCH_LOCATE_SYMBOL,KEY_MASK_CMD|KEY_K);
|
||||||
search_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/goto_line", TTR("Goto Line.."), KEY_MASK_CMD|KEY_G), SEARCH_GOTO_LINE);
|
search_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/goto_line", TTR("Goto Line.."), KEY_MASK_CMD|KEY_L), SEARCH_GOTO_LINE);
|
||||||
search_menu->get_popup()->connect("item_pressed", this,"_menu_option");
|
search_menu->get_popup()->connect("item_pressed", this,"_menu_option");
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue