Fix Right-Click Menu Deselecting Edits Content

Right-clicking a property to open the context menu deselects the text field. This causes the context menu to be useless because it doesn't have anything to edit.
This commit is contained in:
Emmanuel Barroga
2019-08-12 03:39:27 -07:00
parent 0e823cffbc
commit 26c5bac428
2 changed files with 9 additions and 0 deletions

View File

@ -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