summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-07-23 16:58:43 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-07-23 16:58:43 -0500
commit05f3adaba3eb42ba407864dd04064472e68948a6 (patch)
tree2df4d75106dcf9fe2f5045247b6798aceebbfce1 /gtk2_ardour/editor_ops.cc
parentd46081c2756d2990f585a7db41adba9f1a15a1e3 (diff)
Allow deletion of processors in editor_mixer_strip by pointing and pressing Delete
This had to be hacked because the editor_mixer strip is on the editor and doesnt respond to mixer keybindings. Also force the gain intry to lose focus if the user leaves the mixer strip. this will probably solve some long-standing complaints. although perhaps a more elegant solution is possible.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index edf0570ec7..5987c545e1 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -76,6 +76,7 @@
#include "interthread_progress_window.h"
#include "keyboard.h"
#include "midi_region_view.h"
+#include "mixer_strip.h"
#include "mouse_cursors.h"
#include "normalize_dialog.h"
#include "patch_change_dialog.h"
@@ -3731,7 +3732,13 @@ Editor::bounce_range_selection (bool replace, bool enable_processing)
void
Editor::delete_ ()
{
- cut_copy (Delete);
+ //special case: if the user is pointing in the editor/mixer strip, they may be trying to delete a plugin.
+ //we need this because the editor-mixer strip is in the editor window, so it doesn't get the bindings from the mix window
+ //TODO: perhaps someday we need to accomodate the other bindings such as mute, solo, etc.
+ if ( current_mixer_strip && current_mixer_strip->is_selected() )
+ current_mixer_strip->delete_processors ();
+ else
+ cut_copy (Delete);
}
/** Cut selected regions, automation points or a time range */