From 5d3fb49826a58a603eb91407fea4b94004d724ad Mon Sep 17 00:00:00 2001 From: MarianoGNU Date: Tue, 26 Jan 2016 17:24:58 -0300 Subject: Focus and select line edit every time color is changed. Fixes #2586 --- scene/gui/color_picker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 8685ec1c99..bcf25a93c1 100644 --- a/scene/gui/color_picker.cpp +++ b/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; -- cgit v1.2.3