summaryrefslogtreecommitdiff
path: root/Applications/Piano
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-12 20:30:33 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-12 20:31:16 +0200
commit977863ea078e829df10d351a2e9ac3097fb8f5d9 (patch)
tree5ea075feaa74d0ff74381399c85cae1bfbaaa6b0 /Applications/Piano
parent3a905aed063e84331aec82826926cdb89d777892 (diff)
downloadserenity-977863ea078e829df10d351a2e9ac3097fb8f5d9.zip
LibGUI: Include keyboard modifier state with button on_click calls
This will allow you us to implement special behavior when Ctrl+clicking a button.
Diffstat (limited to 'Applications/Piano')
-rw-r--r--Applications/Piano/SamplerWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Piano/SamplerWidget.cpp b/Applications/Piano/SamplerWidget.cpp
index 61b92fd52b..64817fc32a 100644
--- a/Applications/Piano/SamplerWidget.cpp
+++ b/Applications/Piano/SamplerWidget.cpp
@@ -107,7 +107,7 @@ SamplerWidget::SamplerWidget(AudioEngine& audio_engine)
m_open_button->set_preferred_size(24, 24);
m_open_button->set_focusable(false);
m_open_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"));
- m_open_button->on_click = [this] {
+ m_open_button->on_click = [this](auto) {
Optional<String> open_path = GUI::FilePicker::get_open_filepath();
if (!open_path.has_value())
return;