1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Everywhere: Rename left/right-click to primary/secondary

This resolves #10641.
This commit is contained in:
Filiph Sandström 2021-10-27 13:20:27 +02:00 committed by Idan Horowitz
parent a6ccf6659a
commit d6a0726302
79 changed files with 183 additions and 183 deletions

View file

@ -73,8 +73,8 @@ public:
painter.stroke_path(path, Color::Black, 1);
auto primary_secondary_switched = GUI::WindowServerConnection::the().get_buttons_switched();
auto primary_pressed = m_buttons & GUI::MouseButton::Left;
auto secondary_pressed = m_buttons & GUI::MouseButton::Right;
auto primary_pressed = m_buttons & GUI::MouseButton::Primary;
auto secondary_pressed = m_buttons & GUI::MouseButton::Secondary;
if (primary_secondary_switched ? secondary_pressed : primary_pressed) {
painter.fill_rect({ 31, 21, 34, 44 }, Color::Blue);