mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
HackStudio: Hide FindWidget on escape key press
This commit is contained in:
parent
4fd463dae0
commit
1ec3847acd
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ FindWidget::FindWidget(NonnullRefPtr<Editor> editor)
|
|||
m_input_field->on_return_pressed = [this]() {
|
||||
find_next(GUI::TextEditor::SearchDirection::Forward);
|
||||
};
|
||||
|
||||
m_input_field->on_escape_pressed = [this]() {
|
||||
hide();
|
||||
};
|
||||
}
|
||||
|
||||
void FindWidget::show()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue