diff options
author | Noshyaar <poommetee@protonmail.com> | 2018-01-01 18:51:35 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-01 18:51:35 +0700 |
commit | a6328011d85ea285f974d354ce4e30cf8e3456de (patch) | |
tree | 05aa46a82702cd7440aa145b83a24b0b503bdeec /editor | |
parent | 52deb679df547ea9634cf2cc337fa98905bb12fb (diff) | |
parent | b80bc553dd52259eee4c25eb7652020e75d9e814 (diff) |
Merge pull request #14973 from poke1024/docs-word-selection
Double-click word selection for RichTextLabel (i.e. docs)
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_help.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 41bcc7a1ea..b078136f23 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -613,7 +613,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); } |