소스 검색

Fix focus after pressing Enter in EditorSpinSlider

With the change from Popup to Controls for the Input-Node, it becomes
necessary to adjust focus after hiding the Input-Node to the initial
Control.
Markus Sauermann 2 년 전
부모
커밋
e88fbfc5ea
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      editor/editor_spin_slider.cpp

+ 1 - 0
editor/editor_spin_slider.cpp

@@ -582,6 +582,7 @@ void EditorSpinSlider::_value_focus_exited() {
 		//tab was pressed
 	} else {
 		//enter, click, esc
+		grab_focus();
 	}
 }