mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 11:09:05 +03:00
Spreadsheet: Set cursor manually so that correct cells are outlined
Due to the fact that in the AbstractView, when multiple cells are selected, and then another cell is selected within this selection, the cursor is not updated as the user may be beginning to drag, have to override this functionality for the Spreadsheet application. This is because in spreadsheets when multiple cells are selected, and then you click on one of the cells within the selection, the selection should be cleared and the targetted cell highlighted.
This commit is contained in:
parent
1287238430
commit
10bbb01ed8
Notes:
sideshowbarker
2024-07-17 17:08:35 +09:00
Author: https://github.com/martinfalisse Commit: https://github.com/SerenityOS/serenity/commit/10bbb01ed8 Pull-request: https://github.com/SerenityOS/serenity/pull/12280 Reviewed-by: https://github.com/alimpfard
@ -182,6 +182,8 @@ void InfinitelyScrollableTableView::mousedown_event(GUI::MouseEvent& event)
|
||||
AbstractTableView::mousedown_event(adjusted_event);
|
||||
} else {
|
||||
AbstractTableView::mousedown_event(event);
|
||||
auto index = index_at_event_position(event.position());
|
||||
AbstractTableView::set_cursor(index, SelectionUpdate::Set);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user