diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-02-02 16:17:13 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-02-02 16:44:19 +0100 |
commit | 58398e4b2a9666a94aacced30453c1fc46b4a2e8 (patch) | |
tree | 410b31cee14ee2577eb8262bdbebb2ecc024b1eb /src/ui_act.c | |
parent | 0a76b7239781e6e0cb77169302219e6566b6c4d3 (diff) | |
download | pianobar-58398e4b2a9666a94aacced30453c1fc46b4a2e8.tar.gz pianobar-58398e4b2a9666a94aacced30453c1fc46b4a2e8.tar.bz2 pianobar-58398e4b2a9666a94aacced30453c1fc46b4a2e8.zip |
Allow keyboard shortcuts to be disabled
Something like
act_foobar = disabled
disables the command foobar completely now. Useful if you don't use
software volume control. See issue #78.
Diffstat (limited to 'src/ui_act.c')
-rw-r--r-- | src/ui_act.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui_act.c b/src/ui_act.c index 76f4fee..dac104a 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -111,7 +111,7 @@ BarUiActCallback(BarUiActHelp) { BarUiMsg (MSG_NONE, "\r"); for (i = 0; i < BAR_KS_COUNT; i++) { - if (idToDesc[i] != NULL) { + if (idToDesc[i] != NULL && app->settings.keys[i] != BAR_KS_DISABLED) { BarUiMsg (MSG_LIST, "%c %s\n", app->settings.keys[i], idToDesc[i]); } } |