13
0

Offer dedicated alternatives for Delete/Backspace

This follows Processor Box:
 <Binding key="Delete" action="ProcessorMenu/delete"/>
 <Binding key="BackSpace" action="ProcessorMenu/backspace"/>
This commit is contained in:
Robin Gareus 2022-12-02 19:50:39 +01:00
parent 899cacdf86
commit d808315e2a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@
<Binding key="Primary-c" action="Mixer/copy-processors" group="Processor operations on the selected strip(s)"/> <Binding key="Primary-c" action="Mixer/copy-processors" group="Processor operations on the selected strip(s)"/>
<Binding key="Primary-v" action="Mixer/paste-processors" group="Processor operations on the selected strip(s)"/> <Binding key="Primary-v" action="Mixer/paste-processors" group="Processor operations on the selected strip(s)"/>
<Binding key="Delete" action="Mixer/delete-processors" group="Processor operations on the selected strip(s)"/> <Binding key="Delete" action="Mixer/delete-processors" group="Processor operations on the selected strip(s)"/>
<Binding key="BackSpace" action="Mixer/delete-processors" group="Processor operations on the selected strip(s)"/> <Binding key="BackSpace" action="Mixer/delete-processors-alt" group="Processor operations on the selected strip(s)"/>
<Binding key="Primary-a" action="Mixer/select-all-processors" group="Processor operations on the selected strip(s)"/> <Binding key="Primary-a" action="Mixer/select-all-processors" group="Processor operations on the selected strip(s)"/>
<Binding key="slash" action="Mixer/ab-plugins" group="Processor operations on the selected strip(s)"/> <Binding key="slash" action="Mixer/ab-plugins" group="Processor operations on the selected strip(s)"/>
<Binding key="Secondary-m" action="Common/show-editor" group="Window Visibility"/> <Binding key="Secondary-m" action="Common/show-editor" group="Window Visibility"/>

View File

@ -3649,6 +3649,7 @@ Mixer_UI::register_actions ()
ActionManager::register_action (group, "cut-processors", _("Cut Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::cut_processors)); ActionManager::register_action (group, "cut-processors", _("Cut Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::cut_processors));
ActionManager::register_action (group, "paste-processors", _("Paste Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::paste_processors)); ActionManager::register_action (group, "paste-processors", _("Paste Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::paste_processors));
ActionManager::register_action (group, "delete-processors", _("Delete Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::delete_processors)); ActionManager::register_action (group, "delete-processors", _("Delete Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::delete_processors));
ActionManager::register_action (group, "delete-processors-alt", _("Delete Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::delete_processors));
ActionManager::register_action (group, "select-all-processors", _("Select All (visible) Processors"), sigc::mem_fun (*this, &Mixer_UI::select_all_processors)); ActionManager::register_action (group, "select-all-processors", _("Select All (visible) Processors"), sigc::mem_fun (*this, &Mixer_UI::select_all_processors));
ActionManager::register_action (group, "toggle-processors", _("Toggle Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::toggle_processors)); ActionManager::register_action (group, "toggle-processors", _("Toggle Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::toggle_processors));
ActionManager::register_action (group, "ab-plugins", _("Toggle Selected Plugins"), sigc::mem_fun (*this, &Mixer_UI::ab_plugins)); ActionManager::register_action (group, "ab-plugins", _("Toggle Selected Plugins"), sigc::mem_fun (*this, &Mixer_UI::ab_plugins));

View File

@ -9,6 +9,6 @@
<Binding key="F7" action="Cues/trigger-cue-6"/> <Binding key="F7" action="Cues/trigger-cue-6"/>
<Binding key="F8" action="Cues/trigger-cue-7"/> <Binding key="F8" action="Cues/trigger-cue-7"/>
<Binding key="Delete" action="Cues/clear-trigger-slot"/> <Binding key="Delete" action="Cues/clear-trigger-slot"/>
<Binding key="BackSpace" action="Cues/clear-trigger-slot"/> <Binding key="BackSpace" action="Cues/clear-trigger-slot-alt"/>
</Press> </Press>
</Bindings> </Bindings>

View File

@ -771,6 +771,7 @@ TriggerPage::register_actions ()
Glib::RefPtr<ActionGroup> trigger_actions = ActionManager::create_action_group (bindings, X_("Cues")); Glib::RefPtr<ActionGroup> trigger_actions = ActionManager::create_action_group (bindings, X_("Cues"));
ActionManager::register_action (trigger_actions, "clear-trigger-slot", _("Clear Selected Slot"), sigc::mem_fun (*this, &TriggerPage::clear_selected_slot)); ActionManager::register_action (trigger_actions, "clear-trigger-slot", _("Clear Selected Slot"), sigc::mem_fun (*this, &TriggerPage::clear_selected_slot));
ActionManager::register_action (trigger_actions, "clear-trigger-slot-alt", _("Clear Selected Slot"), sigc::mem_fun (*this, &TriggerPage::clear_selected_slot));
for (int32_t n = 0; n < TriggerBox::default_triggers_per_box; ++n) { for (int32_t n = 0; n < TriggerBox::default_triggers_per_box; ++n) {
const std::string action_name = string_compose ("trigger-cue-%1", n); const std::string action_name = string_compose ("trigger-cue-%1", n);