Pārlūkot izejas kodu

Focus and select line edit every time color is changed. Fixes #2586

MarianoGNU 9 gadi atpakaļ
vecāks
revīzija
5d3fb49826
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      scene/gui/color_picker.cpp

+ 2 - 0
scene/gui/color_picker.cpp

@@ -154,6 +154,8 @@ void ColorPicker::_update_color() {
 	}
 
 	html->set_text(color.to_html(edit_alpha && color.a<1));
+	html->grab_focus();
+	html->select();
 
 	sample->update();
 	updating=false;