mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +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]() {
|
m_input_field->on_return_pressed = [this]() {
|
||||||
find_next(GUI::TextEditor::SearchDirection::Forward);
|
find_next(GUI::TextEditor::SearchDirection::Forward);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
m_input_field->on_escape_pressed = [this]() {
|
||||||
|
hide();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void FindWidget::show()
|
void FindWidget::show()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue