Is it possible to have multiple keys bound to the same action?
There seem to be a small number of actions which have 2 slots in the keybinding table (and I think in the ardour6.keys file the 2nd action is prefixed with “alternate-”) - is this just a hack for certain actions, or is there a general way of doing this that I’m missing?
Why do I want to do this? I’m building a little USB widget that generates the ‘transport control’ keys (stop/record/play etc) and I’d like to be able to bind eg both the XF86AudioRecord and Shift-r to the ‘Record’ action - so I don’t have to remap the keys if I don’t have my widget plugged in.
You can definitely bind more than one key to the same action. There are also different domains for bindings, so the same key can do more than one thing depending on the context.
What you can’t do it use the keyboard shortcut editor to make this happen, because when you bind key2 to an action already bound to key1, it will unbind key1 first (hence the alternate-XXX actions to permit this).
You can do it by manually editing your ardour keyboard shortcut bindings, found in ~/.config/ardour/ardour.keys (created after any edits in the shortcut editor).
Be aware that the bindings do not use “Ctrl”, “Shift” etc. We use OS-portable names like “Primary” (Ctrl on Linux), “Secondary” (Alt on Linux), “Tertiary” (Shift on Linux).