diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-09-08 15:09:52 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-09-08 15:10:57 +0200 |
commit | bee38c6b0bf3c524484bce95b135fbeaf9fa6cc5 (patch) | |
tree | c602ab56befd9906180413d2266fc692e4a6fbda /editor | |
parent | e9f49a6d5ac88a6afca8a16f91a05f4fcdf5a589 (diff) |
Find the previous match in the editor help when pressing Shift + Enter
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_help.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index e6df00b48c..24ed0ecfd0 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -30,6 +30,7 @@ #include "editor_help.h" +#include "core/os/input.h" #include "core/os/keyboard.h" #include "doc_data_compressed.gen.h" #include "editor/plugins/script_editor_plugin.h" @@ -1807,5 +1808,9 @@ void FindBar::_search_text_changed(const String &p_text) { void FindBar::_search_text_entered(const String &p_text) { - search_next(); + if (Input::get_singleton()->is_key_pressed(KEY_SHIFT)) { + search_prev(); + } else { + search_next(); + } } |