summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authoreska <eska@eska.me>2015-12-10 23:53:19 +0100
committereska <eska@eska.me>2015-12-10 23:53:19 +0100
commita028840ea5cfc6ac4e80d99c4850ae3f10eeb353 (patch)
treea6ec2617a93476a62d364b3cfcf208b6f748bfe8 /scene/gui
parent3b68f0d051ac33a95e78025622c5f93219591da9 (diff)
Fix editing TreeItem cells in range mode
- Show slider when editing range mode tree cells per mouse input - Hide slider after using keyboard controls to edit range mode tree cells
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index ee7c0724e3..1b204cff65 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -1721,6 +1721,7 @@ void Tree::text_editor_enter(String p_text) {
text_editor->hide();
+ value_editor->hide();
if (!popup_edited_item)
return;
@@ -2167,18 +2168,9 @@ void Tree::_input_event(InputEvent p_event) {
range_drag_enabled=false;
Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE);
warp_mouse(range_drag_capture_pos);
- } else {
- text_editor->set_pos(pressing_item_rect.pos);
- text_editor->set_size(pressing_item_rect.size);
-
- text_editor->clear();
- text_editor->set_text( pressing_for_editor_text );
- text_editor->select_all();
+ } else
+ edit_selected();
- text_editor->show_modal();
- text_editor->grab_focus();
-
- }
pressing_for_editor=false;
}