1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 15:44:57 +00:00

LibGUI: Do not clear the selection on right-click

This commit is contained in:
AnotherTest 2020-09-23 23:52:39 +03:30 committed by Andreas Kling
parent 4748248fef
commit e250591ff3

View file

@ -224,7 +224,7 @@ void AbstractView::mousedown_event(MouseEvent& event)
} else if (event.button() == MouseButton::Left && m_selection.contains(index) && !m_model->drag_data_type().is_null()) {
// We might be starting a drag, so don't throw away other selected items yet.
m_might_drag = true;
} else {
} else if (event.button() != MouseButton::Right) {
set_cursor(index, SelectionUpdate::Set);
}