mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
HackStudio: Hide FindWidget on escape key press
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user