summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index d885b07d14..d0b749302f 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -1607,7 +1607,9 @@ void TextEdit::_notification(int p_what) {
draw_caret = true;
}
- _show_virtual_keyboard();
+ if (editable) {
+ _show_virtual_keyboard();
+ }
} break;
case NOTIFICATION_FOCUS_EXIT: {
@@ -2010,7 +2012,9 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
}
}
- _show_virtual_keyboard();
+ if (editable) {
+ _show_virtual_keyboard();
+ }
}
}