diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-13 08:25:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-13 08:25:38 +0200 |
commit | a476a5b71eb7039ccdec9a12daba92a9c2485302 (patch) | |
tree | 8d748b879ec5eb10b15e289b190961b2a0b9b765 /scene | |
parent | e7d484982eb011259d5d11d022e18b513eae2c30 (diff) | |
parent | 26c5bac428c5190ca8d2f44180e5c248fc5e66c9 (diff) |
Merge pull request #31317 from sparkart/master
Fix Right-Click Menu Deselecting Edits Content
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/spin_box.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index db277d3705..6ada0cba97 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -170,6 +170,10 @@ void SpinBox::_gui_input(const Ref<InputEvent> &p_event) { void SpinBox::_line_edit_focus_exit() { + // discontinue because the focus_exit was caused by right-click context menu + if (line_edit->get_menu()->is_visible()) + return; + _text_entered(line_edit->get_text()); } |