projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8d6ddf
)
Allow to un-assign action-scripts via shift+right-click
author
Robin Gareus
<robin@gareus.org>
Sat, 18 Feb 2017 01:24:23 +0000
(
02:24
+0100)
committer
Robin Gareus
<robin@gareus.org>
Sat, 18 Feb 2017 01:24:23 +0000
(
02:24
+0100)
gtk2_ardour/ardour_ui_dependents.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/ardour_ui_dependents.cc
b/gtk2_ardour/ardour_ui_dependents.cc
index c39a44c451e43749fe5f0e862a3c37952fff162f..0971952d26aa85583a73e0c810c5552b9fb9ce44 100644
(file)
--- a/
gtk2_ardour/ardour_ui_dependents.cc
+++ b/
gtk2_ardour/ardour_ui_dependents.cc
@@
-410,7
+410,11
@@
ARDOUR_UI::bind_lua_action_script (GdkEventButton*ev, int i)
return false;
}
LuaInstance *li = LuaInstance::instance();
- li->interactive_add (LuaScriptInfo::EditorAction, i);
+ if (Gtkmm2ext::Keyboard::modifier_state_equals (ev->state, Gtkmm2ext::Keyboard::TertiaryModifier)) {
+ li->remove_lua_action (i);
+ } else {
+ li->interactive_add (LuaScriptInfo::EditorAction, i);
+ }
return true;
}