1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Disable showing the virtual keyboard on focus events for certain editor components

This commit is contained in:
Fredia Huya-Kouadio
2025-05-05 22:19:33 -04:00
parent f29feac7a5
commit a088b5dc23
4 changed files with 4 additions and 0 deletions

View File

@@ -1865,6 +1865,7 @@ CodeTextEditor::CodeTextEditor() {
text_editor->set_structured_text_bidi_override(TextServer::STRUCTURED_TEXT_GDSCRIPT);
text_editor->set_draw_bookmarks_gutter(true);
text_editor->set_virtual_keyboard_show_on_focus(false);
text_editor->set_draw_line_numbers(true);
text_editor->set_highlight_matching_braces_enabled(true);
text_editor->set_auto_indent_enabled(true);

View File

@@ -902,6 +902,7 @@ EditorSettingsDialog::EditorSettingsDialog() {
search_box = memnew(LineEdit);
search_box->set_placeholder(TTR("Filter Settings"));
search_box->set_accessibility_name(TTRC("Filter Settings"));
search_box->set_virtual_keyboard_show_on_focus(false);
search_box->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hbc->add_child(search_box);

View File

@@ -945,6 +945,7 @@ ProjectDialog::ProjectDialog() {
name_container->add_child(l);
project_name = memnew(LineEdit);
project_name->set_virtual_keyboard_show_on_focus(false);
project_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
name_container->add_child(project_name);

View File

@@ -672,6 +672,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
search_box->set_placeholder(TTR("Filter Settings"));
search_box->set_accessibility_name(TTRC("Filter Settings"));
search_box->set_clear_button_enabled(true);
search_box->set_virtual_keyboard_show_on_focus(false);
search_box->set_h_size_flags(Control::SIZE_EXPAND_FILL);
search_bar->add_child(search_box);