mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:42:07 +00:00
LibGUI: Remove barely used AbstractView::is_searching()
This commit is contained in:
parent
b775b1c199
commit
cc93736f21
2 changed files with 2 additions and 3 deletions
|
@ -562,7 +562,7 @@ void AbstractView::keydown_event(KeyEvent& event)
|
||||||
|
|
||||||
if (is_searchable()) {
|
if (is_searchable()) {
|
||||||
if (event.key() == KeyCode::Key_Backspace) {
|
if (event.key() == KeyCode::Key_Backspace) {
|
||||||
if (is_searching()) {
|
if (!m_highlighted_search.is_null()) {
|
||||||
//if (event.modifiers() == Mod_Ctrl) {
|
//if (event.modifiers() == Mod_Ctrl) {
|
||||||
// TODO: delete last word
|
// TODO: delete last word
|
||||||
//}
|
//}
|
||||||
|
@ -587,7 +587,7 @@ void AbstractView::keydown_event(KeyEvent& event)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (event.key() == KeyCode::Key_Escape) {
|
} else if (event.key() == KeyCode::Key_Escape) {
|
||||||
if (is_searching()) {
|
if (!m_highlighted_search.is_null()) {
|
||||||
stop_highlighted_search_timer();
|
stop_highlighted_search_timer();
|
||||||
|
|
||||||
event.accept();
|
event.accept();
|
||||||
|
|
|
@ -162,7 +162,6 @@ protected:
|
||||||
void activate_selected();
|
void activate_selected();
|
||||||
void update_edit_widget_position();
|
void update_edit_widget_position();
|
||||||
|
|
||||||
bool is_searching() const { return !m_highlighted_search.is_null(); }
|
|
||||||
void stop_highlighted_search_timer();
|
void stop_highlighted_search_timer();
|
||||||
void start_highlighted_search_timer();
|
void start_highlighted_search_timer();
|
||||||
void do_search(String&&);
|
void do_search(String&&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue