You've already forked godot
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user