mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 19:15:07 +00:00
Everywhere: Rename left/right-click to primary/secondary
This resolves #10641.
This commit is contained in:
parent
a6ccf6659a
commit
d6a0726302
79 changed files with 183 additions and 183 deletions
|
@ -224,7 +224,7 @@ void AbstractView::mousedown_event(MouseEvent& event)
|
|||
if (!model())
|
||||
return;
|
||||
|
||||
if (event.button() == MouseButton::Left)
|
||||
if (event.button() == MouseButton::Primary)
|
||||
m_left_mousedown_position = event.position();
|
||||
|
||||
auto index = index_at_event_position(event.position());
|
||||
|
@ -236,10 +236,10 @@ void AbstractView::mousedown_event(MouseEvent& event)
|
|||
set_cursor(index, SelectionUpdate::Ctrl);
|
||||
} else if (event.modifiers() & Mod_Shift) {
|
||||
set_cursor(index, SelectionUpdate::Shift);
|
||||
} else if (event.button() == MouseButton::Left && m_selection.contains(index) && !m_model->drag_data_type().is_null()) {
|
||||
} else if (event.button() == MouseButton::Primary && 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 if (event.button() == MouseButton::Right) {
|
||||
} else if (event.button() == MouseButton::Secondary) {
|
||||
set_cursor(index, SelectionUpdate::ClearIfNotSelected);
|
||||
} else {
|
||||
set_cursor(index, SelectionUpdate::Set);
|
||||
|
@ -285,7 +285,7 @@ void AbstractView::mousemove_event(MouseEvent& event)
|
|||
if (!m_might_drag)
|
||||
return AbstractScrollableWidget::mousemove_event(event);
|
||||
|
||||
if (!(event.buttons() & MouseButton::Left) || m_selection.is_empty()) {
|
||||
if (!(event.buttons() & MouseButton::Primary) || m_selection.is_empty()) {
|
||||
m_might_drag = false;
|
||||
return AbstractScrollableWidget::mousemove_event(event);
|
||||
}
|
||||
|
@ -360,7 +360,7 @@ void AbstractView::doubleclick_event(MouseEvent& event)
|
|||
if (!model())
|
||||
return;
|
||||
|
||||
if (event.button() != MouseButton::Left)
|
||||
if (event.button() != MouseButton::Primary)
|
||||
return;
|
||||
|
||||
m_might_drag = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue