summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-26 21:48:53 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-26 21:48:53 +0100
commit600411b4335b380a1360f85a19884caa3ba6d20a (patch)
tree79c22e2616619b743220f27ac45c8f3c969dbde5
parent9cafd47ed8c211107cd5b23646d3bc4c0aa4fc50 (diff)
parent5d3fb49826a58a603eb91407fea4b94004d724ad (diff)
Merge pull request #3467 from MarianoGnu/master
Focus and select line edit every time color is changed. Fixes #2586
-rw-r--r--scene/gui/color_picker.cpp2
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;