mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-15 18:06:06 +01:00
code to enable shortcut/binding debugging
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4796 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
76186b105d
commit
3db3aaea78
1 changed files with 16 additions and 0 deletions
|
|
@ -648,7 +648,23 @@ Keyboard::load_keybindings (string path)
|
|||
|
||||
release_keys.clear ();
|
||||
|
||||
bool show_bindings = (getenv ("ARDOUR_SHOW_BINDINGS") != 0);
|
||||
|
||||
for (n = names.begin(), b = bindings.begin(), g = groups.begin(); n != names.end(); ++n, ++b, ++g) {
|
||||
|
||||
if (show_bindings) {
|
||||
|
||||
cerr << "Action: " << (*n) << " Group: " << (*g) << " binding = ";
|
||||
|
||||
if ((*b).get_key() != GDK_VoidSymbol) {
|
||||
cerr << (*b).get_key() << " w/mod = " << hex << (*b).get_mod() << dec << " = " << (*b).get_abbrev();
|
||||
} else {
|
||||
cerr << "unbound";
|
||||
}
|
||||
|
||||
cerr << endl;
|
||||
}
|
||||
|
||||
if ((*b).get_mod() & Gdk::RELEASE_MASK) {
|
||||
release_keys.insert (pair<AccelKey,two_strings> (*b, two_strings (*g, *n)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue