diff options
author | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-01-26 17:24:58 -0300 |
---|---|---|
committer | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-01-26 17:24:58 -0300 |
commit | 5d3fb49826a58a603eb91407fea4b94004d724ad (patch) | |
tree | 02f2035607d71700a7fca843b9f6e9b837a7f6de /scene | |
parent | ba4f9d1be3020614357db773f2355440a92ad300 (diff) |
Focus and select line edit every time color is changed. Fixes #2586
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/color_picker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |