From 54bdc5fc824ff8b31f1e331a58eeab7379c8c30e Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov <105675984+ryevdokimov@users.noreply.github.com> Date: Mon, 20 Jan 2025 14:56:23 +0400 Subject: [PATCH] Fix spinbox input events propagating during dragging, breaking focus --- scene/gui/spin_box.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index 26c7563aee6..e2e6f076781 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -120,6 +120,9 @@ LineEdit *SpinBox::get_line_edit() { } void SpinBox::_line_edit_input(const Ref &p_event) { + if (drag.enabled) { + line_edit->accept_event(); + } } void SpinBox::_range_click_timeout() {