mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
Everywhere: Rename left/right-click to primary/secondary
This resolves #10641.
This commit is contained in:
committed by
Idan Horowitz
parent
a6ccf6659a
commit
d6a0726302
@@ -214,7 +214,7 @@ void IconView::mousedown_event(MouseEvent& event)
|
||||
if (!model())
|
||||
return AbstractView::mousedown_event(event);
|
||||
|
||||
if (event.button() != MouseButton::Left)
|
||||
if (event.button() != MouseButton::Primary)
|
||||
return AbstractView::mousedown_event(event);
|
||||
|
||||
auto index = index_at_event_position(event.position());
|
||||
@@ -239,7 +239,7 @@ void IconView::mousedown_event(MouseEvent& event)
|
||||
|
||||
void IconView::mouseup_event(MouseEvent& event)
|
||||
{
|
||||
if (m_rubber_banding && event.button() == MouseButton::Left) {
|
||||
if (m_rubber_banding && event.button() == MouseButton::Primary) {
|
||||
m_rubber_banding = false;
|
||||
if (m_out_of_view_timer)
|
||||
m_out_of_view_timer->stop();
|
||||
|
||||
Reference in New Issue
Block a user