13
0

Allow to bind initial Lua action via left-click

This commit is contained in:
Robin Gareus 2019-12-12 20:50:34 +01:00
parent d226b63e70
commit 5f6b2d6843
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -405,10 +405,11 @@ ARDOUR_UI::setup_windows ()
bool
ARDOUR_UI::bind_lua_action_script (GdkEventButton*ev, int i)
{
if (ev->button != 3) {
LuaInstance *li = LuaInstance::instance();
std::string name;
if (ev->button != 3 && !(ev->button == 1 && !li->lua_action_name (i, name))) {
return false;
}
LuaInstance *li = LuaInstance::instance();
if (Gtkmm2ext::Keyboard::modifier_state_equals (ev->state, Gtkmm2ext::Keyboard::TertiaryModifier)) {
li->remove_lua_action (i);
} else {