Add Ctrl + L / Cmd + Shift + G shortcut to focus path bar in FileDialog

This also tweaks EditorFileDialog to use the same shortcut,
while making it select the path text after focusing
(like in most file managers).

Ctrl + L / Cmd + Shift + G can also now be used to focus on the
property name in the project settings editor, as well in the
Input Map, Autoload, Shader Globals and Global Groups tabs.
This commit is contained in:
Hugo Locurcio
2023-08-30 20:11:21 +02:00
parent 01dc5c5b58
commit 4f8d7cae26
14 changed files with 84 additions and 2 deletions

View File

@ -356,6 +356,10 @@ String ShaderGlobalsEditor::_check_new_variable_name(const String &p_variable_na
return "";
}
LineEdit *ShaderGlobalsEditor::get_name_box() const {
return variable_name;
}
void ShaderGlobalsEditor::_variable_name_text_changed(const String &p_variable_name) {
const String &warning = _check_new_variable_name(p_variable_name.strip_edges());
variable_add->set_tooltip_text(warning);