summaryrefslogtreecommitdiff
path: root/scene/gui/line_edit.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-24 15:51:03 +0200
committerGitHub <noreply@github.com>2019-05-24 15:51:03 +0200
commitf279837f3e5ec1315da9cd201e21dbf5958e9708 (patch)
treec7f74608cc031a76a56bf767ebd009440e8b56f1 /scene/gui/line_edit.cpp
parentd1b4b62eb576e2374af1446850d7ac54662fea58 (diff)
parent2d84ec5468ea0f88b2df5e5f8ae257f72288aa9d (diff)
Merge pull request #29067 from KoBeWi/spin_edit
Pass mouse events to SpinBox from its LineEdit
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r--scene/gui/line_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index ed74851755..fa1a63f5e2 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -68,6 +68,7 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) {
_reset_caret_blink_timer();
if (b->is_pressed()) {
+ accept_event(); //don't pass event further when clicked on text field
if (!text.empty() && is_editable() && _is_over_clear_button(b->get_position())) {
clear_button_status.press_attempt = true;
clear_button_status.pressing_inside = true;