diff options
author | Marcus Nilsson <brainbomb@gmail.com> | 2021-06-02 13:21:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-02 18:08:56 +0200 |
commit | 11fa3e4f92325e265834c05fd1385873f2733ff8 (patch) | |
tree | 1900f3d4533053621a4612b289dadd5877107b53 /Userland/Applications/Terminal | |
parent | 9550564767c4ff5566c7277acb35d5b95cdf4e96 (diff) | |
download | serenity-11fa3e4f92325e265834c05fd1385873f2733ff8.zip |
Terminal/LibGUI::TextEditor: Add shift+return to search forwards
This adds support for shift+return key combo in single line TextEditor
fields. Used in this case for searching backwards/forwards in the
Terminal find window.
Diffstat (limited to 'Userland/Applications/Terminal')
-rw-r--r-- | Userland/Applications/Terminal/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 3ab77a578f..846b0ffdd2 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -190,6 +190,10 @@ static RefPtr<GUI::Window> create_find_window(VT::TerminalWidget& terminal) find_backwards.click(); }; + find_textbox.on_shift_return_pressed = [&]() { + find_forwards.click(); + }; + auto& match_case = search.add<GUI::CheckBox>("Case sensitive"); auto& wrap_around = search.add<GUI::CheckBox>("Wrap around"); |