mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibGUI: Set cursor when using highlighted_search in abstractview
Previously using the highlighted_search would not set the cursor to the item found by the search. This results in some unfamiliar behavior such as jumping back up to the previously selected element, before searching, when using the arrow keys to navigate.
This commit is contained in:
parent
044be82567
commit
4b4ee95cdb
1 changed files with 1 additions and 0 deletions
|
@ -613,6 +613,7 @@ void AbstractView::keydown_event(KeyEvent& event)
|
|||
m_highlighted_search = sb.to_string();
|
||||
highlight_search(index);
|
||||
start_highlighted_search_timer();
|
||||
set_cursor(index, SelectionUpdate::None, true);
|
||||
}
|
||||
|
||||
event.accept();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue