mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +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
@@ -122,7 +122,7 @@ void Tray::mousemove_event(GUI::MouseEvent& event)
|
||||
|
||||
void Tray::mousedown_event(GUI::MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left)
|
||||
if (event.button() != GUI::MouseButton::Primary)
|
||||
return;
|
||||
|
||||
auto* pressed_item = item_at(event.position());
|
||||
@@ -137,7 +137,7 @@ void Tray::mousedown_event(GUI::MouseEvent& event)
|
||||
|
||||
void Tray::mouseup_event(GUI::MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left)
|
||||
if (event.button() != GUI::MouseButton::Primary)
|
||||
return;
|
||||
|
||||
if (auto* pressed_item = item_at(event.position()); pressed_item && m_pressed_item_index == pressed_item->index) {
|
||||
|
||||
Reference in New Issue
Block a user