|
@@ -1,5 +1,6 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
|
|
* Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
|
|
|
|
+ * Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
*/
|
|
@@ -236,6 +237,14 @@ void SoundPlayerWidgetAdvancedView::drop_event(GUI::DropEvent& event)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void SoundPlayerWidgetAdvancedView::keydown_event(GUI::KeyEvent& event)
|
|
|
|
+{
|
|
|
|
+ if (event.key() == Key_Space)
|
|
|
|
+ m_play_button->click();
|
|
|
|
+
|
|
|
|
+ GUI::Widget::keydown_event(event);
|
|
|
|
+}
|
|
|
|
+
|
|
SoundPlayerWidgetAdvancedView::~SoundPlayerWidgetAdvancedView()
|
|
SoundPlayerWidgetAdvancedView::~SoundPlayerWidgetAdvancedView()
|
|
{
|
|
{
|
|
manager().on_load_sample_buffer = nullptr;
|
|
manager().on_load_sample_buffer = nullptr;
|