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 /editor | |
parent | e7d484982eb011259d5d11d022e18b513eae2c30 (diff) | |
parent | 26c5bac428c5190ca8d2f44180e5c248fc5e66c9 (diff) |
Merge pull request #31317 from sparkart/master
Fix Right-Click Menu Deselecting Edits Content
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_spin_slider.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp index 9966394025..379b8a2980 100644 --- a/editor/editor_spin_slider.cpp +++ b/editor/editor_spin_slider.cpp @@ -347,6 +347,11 @@ void EditorSpinSlider::_value_input_closed() { //focus_exited signal void EditorSpinSlider::_value_focus_exited() { + + // discontinue because the focus_exit was caused by right-click context menu + if (value_input->get_menu()->is_visible()) + return; + _evaluate_input_text(); // focus is not on the same element after the vlalue_input was exited // -> focus is on next element |