diff options
author | Filiph Sandström <filiph.sandstrom@filfatstudios.com> | 2021-10-27 13:20:27 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-27 22:05:58 +0300 |
commit | d6a072630268eeccee8ce1da0c13fd4a169caa8c (patch) | |
tree | 169e8d0ec79b6c6918a0425986d9c09d9a0b30c7 /Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp | |
parent | a6ccf6659a706eb985cf5e62cd8e8db05ab18ab9 (diff) | |
download | serenity-d6a072630268eeccee8ce1da0c13fd4a169caa8c.zip |
Everywhere: Rename left/right-click to primary/secondary
This resolves #10641.
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp b/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp index ace0316239..7f7d536506 100644 --- a/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/RectangleSelectTool.cpp @@ -29,7 +29,7 @@ RectangleSelectTool::~RectangleSelectTool() void RectangleSelectTool::on_mousedown(Layer*, MouseEvent& event) { auto& image_event = event.image_event(); - if (image_event.button() != GUI::MouseButton::Left) + if (image_event.button() != GUI::MouseButton::Primary) return; m_selecting = true; @@ -61,7 +61,7 @@ void RectangleSelectTool::on_mousemove(Layer*, MouseEvent& event) void RectangleSelectTool::on_mouseup(Layer*, MouseEvent& event) { auto& image_event = event.image_event(); - if (!m_selecting || image_event.button() != GUI::MouseButton::Left) + if (!m_selecting || image_event.button() != GUI::MouseButton::Primary) return; m_selecting = false; |