mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
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.
This commit is contained in:
parent
9550564767
commit
11fa3e4f92
3 changed files with 11 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue