diff options
Diffstat (limited to 'Userland/Applications/Piano/KeysWidget.cpp')
-rw-r--r-- | Userland/Applications/Piano/KeysWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Piano/KeysWidget.cpp b/Userland/Applications/Piano/KeysWidget.cpp index dfa72e1b1d..08203a58d2 100644 --- a/Userland/Applications/Piano/KeysWidget.cpp +++ b/Userland/Applications/Piano/KeysWidget.cpp @@ -270,7 +270,7 @@ int KeysWidget::note_for_event_position(const Gfx::IntPoint& a_point) const void KeysWidget::mousedown_event(GUI::MouseEvent& event) { - if (event.button() != GUI::MouseButton::Left) + if (event.button() != GUI::MouseButton::Primary) return; m_mouse_down = true; @@ -283,7 +283,7 @@ void KeysWidget::mousedown_event(GUI::MouseEvent& event) void KeysWidget::mouseup_event(GUI::MouseEvent& event) { - if (event.button() != GUI::MouseButton::Left) + if (event.button() != GUI::MouseButton::Primary) return; m_mouse_down = false; |