mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +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
|
@ -93,13 +93,13 @@ private:
|
|||
}
|
||||
virtual void mousemove_event(MouseEvent& event) override
|
||||
{
|
||||
if (event.buttons() & (GUI::MouseButton::Left | GUI::MouseButton::Right))
|
||||
if (event.buttons() & (GUI::MouseButton::Primary | GUI::MouseButton::Secondary))
|
||||
draw_at_mouse(event);
|
||||
}
|
||||
void draw_at_mouse(const MouseEvent& event)
|
||||
{
|
||||
bool set = event.buttons() & MouseButton::Left;
|
||||
bool unset = event.buttons() & MouseButton::Right;
|
||||
bool set = event.buttons() & MouseButton::Primary;
|
||||
bool unset = event.buttons() & MouseButton::Secondary;
|
||||
if (!(set ^ unset))
|
||||
return;
|
||||
int x = (event.x() - 1) / m_scale;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue