Double-click word selection for RichTextLabel (i.e. docs)

This commit is contained in:
Bernhard Liebl
2017-12-23 09:59:54 +01:00
parent 32d8b99bc3
commit b80bc553dd
5 changed files with 76 additions and 39 deletions

View File

@ -630,7 +630,7 @@ void EditorHelp::_class_desc_input(const Ref<InputEvent> &p_input) {
Ref<InputEventMouseButton> mb = p_input;
if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == 1) {
if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == 1 && !mb->is_doubleclick()) {
class_desc->set_selection_enabled(false);
class_desc->set_selection_enabled(true);
}