1
Fork 0
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:
Itamar 2022-03-30 16:54:05 +03:00 committed by Tim Flynn
parent 4fd463dae0
commit 1ec3847acd

View file

@ -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()