From b516d6abf988ff3fc8447d7ab4cc5c4d92865e11 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 14 Jun 2023 20:08:43 +0200 Subject: [PATCH] Add keyboard shortcut for delete-section --- gtk2_ardour/ardour.keys.in | 2 ++ gtk2_ardour/editor_actions.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/gtk2_ardour/ardour.keys.in b/gtk2_ardour/ardour.keys.in index 90f0d96a6f..d64a4b4dc5 100644 --- a/gtk2_ardour/ardour.keys.in +++ b/gtk2_ardour/ardour.keys.in @@ -233,6 +233,8 @@ This mode provides many different operations on both regions and control points, @wvis|Common/show-trigger| <@SECONDARY@>c|show cues page @edit|Editor/editor-crop| <@PRIMARY@><@SECONDARY@>c|crop range @edit|Editor/copy-paste-section| <@PRIMARY@><@TERTIARY@>c|copy \& paste section +@edit|Editor/delete-section| <@PRIMARY@><@TERTIARY@>Delete|delete section +@edit|Editor/alternate-delete-section| <@PRIMARY@><@TERTIARY@>BackSpace|delete section @edit|Editor/editor-consolidate| <@SECONDARY@><@TERTIARY@>c|consolidate range @rop|Region/set-region-sync-position| v|set region sync point @edit|Editor/editor-paste| <@PRIMARY@>v|paste diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index 255de51b9e..045584cbb3 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -372,6 +372,7 @@ Editor::register_actions () reg_sens (editor_actions, "cut-paste-section", _("Cut/Paste Range Section to Edit Point"), sigc::bind (sigc::mem_fun(*this, &Editor::cut_copy_section), CutPasteSection)); reg_sens (editor_actions, "insert-section", _("Insert Time Section at Edit Point"), sigc::bind (sigc::mem_fun(*this, &Editor::cut_copy_section), InsertSection)); reg_sens (editor_actions, "delete-section", _("Delete Range Section"), sigc::bind (sigc::mem_fun(*this, &Editor::cut_copy_section), DeleteSection)); + reg_sens (editor_actions, "alternate-delete-section", _("Delete Range Section"), sigc::bind (sigc::mem_fun(*this, &Editor::cut_copy_section), DeleteSection)); /* this is a duplicated action so that the main menu can use a different label */ reg_sens (editor_actions, "main-menu-play-selected-regions", _("Play Selected Regions"), sigc::mem_fun (*this, &Editor::play_selected_region));