mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
Piano: Remove waveform cycling with C
This is not the most useful keyboard binding anyways, plus it will be extremely hacky to implement it with the generic processor parameter widgets. Therefore, we'll get rid of it and add back a more generic keyboard binding system later.
This commit is contained in:
parent
196841fd3a
commit
a0b2e8608b
Notes:
sideshowbarker
2024-07-17 08:35:44 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/a0b2e8608b Pull-request: https://github.com/SerenityOS/serenity/pull/14664
3 changed files with 0 additions and 9 deletions
|
@ -104,11 +104,6 @@ KnobsWidget::KnobsWidget(TrackManager& track_manager, MainWidget& main_widget)
|
|||
}
|
||||
}
|
||||
|
||||
void KnobsWidget::cycle_waveform()
|
||||
{
|
||||
m_synth_waveform->set_selected_index((m_synth_waveform->selected_index() + 1) % m_synth_waveform->model()->row_count());
|
||||
}
|
||||
|
||||
void KnobsWidget::update_knobs()
|
||||
{
|
||||
// FIXME: This is needed because when the slider is changed normally, we
|
||||
|
|
|
@ -26,7 +26,6 @@ public:
|
|||
virtual ~KnobsWidget() override = default;
|
||||
|
||||
void update_knobs();
|
||||
void cycle_waveform();
|
||||
|
||||
private:
|
||||
KnobsWidget(TrackManager&, MainWidget&);
|
||||
|
|
|
@ -115,9 +115,6 @@ void MainWidget::special_key_action(int key_code)
|
|||
case Key_X:
|
||||
set_octave_and_ensure_note_change(DSP::Keyboard::Direction::Up);
|
||||
break;
|
||||
case Key_C:
|
||||
m_knobs_widget->cycle_waveform();
|
||||
break;
|
||||
case Key_Space:
|
||||
m_player_widget->toggle_paused();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue