mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
LibGUI: Unbreak clearing GTableView selection by clicking outside items.
Also, clicking on the column headers should not clear selection.
This commit is contained in:
@@ -87,6 +87,11 @@ Rect GTableView::row_rect(int item_index) const
|
||||
|
||||
void GTableView::mousedown_event(GMouseEvent& event)
|
||||
{
|
||||
if (event.y() < header_height()) {
|
||||
// FIXME: Do something when clicking on a header.
|
||||
return;
|
||||
}
|
||||
|
||||
auto adjusted_position = event.position().translated(0, m_vertical_scrollbar->value());
|
||||
if (event.button() == GMouseButton::Left) {
|
||||
for (int i = 0; i < item_count(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user