From 11fa3e4f92325e265834c05fd1385873f2733ff8 Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Wed, 2 Jun 2021 13:21:17 +0200 Subject: 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. --- Userland/Applications/Terminal/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Userland/Applications/Terminal') 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 create_find_window(VT::TerminalWidget& terminal) find_backwards.click(); }; + find_textbox.on_shift_return_pressed = [&]() { + find_forwards.click(); + }; + auto& match_case = search.add("Case sensitive"); auto& wrap_around = search.add("Wrap around"); -- cgit v1.2.3