mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibGUI: Do not clear the selection on right-click
This commit is contained in:
parent
4748248fef
commit
e250591ff3
Notes:
sideshowbarker
2024-07-19 02:13:58 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/e250591ff31 Pull-request: https://github.com/SerenityOS/serenity/pull/3592 Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue