mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibGUI: Remove barely used AbstractView::is_searching()
This commit is contained in:
parent
b775b1c199
commit
cc93736f21
Notes:
sideshowbarker
2024-07-18 04:26:42 +09:00
Author: https://github.com/d1823
Commit: cc93736f21
Pull-request: https://github.com/SerenityOS/serenity/pull/9790
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
2 changed files with 2 additions and 3 deletions
|
@ -562,7 +562,7 @@ void AbstractView::keydown_event(KeyEvent& event)
|
|||
|
||||
if (is_searchable()) {
|
||||
if (event.key() == KeyCode::Key_Backspace) {
|
||||
if (is_searching()) {
|
||||
if (!m_highlighted_search.is_null()) {
|
||||
//if (event.modifiers() == Mod_Ctrl) {
|
||||
// TODO: delete last word
|
||||
//}
|
||||
|
@ -587,7 +587,7 @@ void AbstractView::keydown_event(KeyEvent& event)
|
|||
return;
|
||||
}
|
||||
} else if (event.key() == KeyCode::Key_Escape) {
|
||||
if (is_searching()) {
|
||||
if (!m_highlighted_search.is_null()) {
|
||||
stop_highlighted_search_timer();
|
||||
|
||||
event.accept();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue