summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2012-06-24 15:24:09 +0200
committerLars-Dominik Braun <lars@6xq.net>2012-06-26 22:12:17 +0200
commite95baabbb45f20318b5df3010202e3c3c9cf0715 (patch)
treee34b4af332535fb7b3225a741fc52e4c18b853b8 /src
parent845cf4c1bdae57e8ed59bc3bb6fcaa7464c8904e (diff)
downloadpianobar-windows-e95baabbb45f20318b5df3010202e3c3c9cf0715.tar.gz
pianobar-windows-e95baabbb45f20318b5df3010202e3c3c9cf0715.tar.bz2
pianobar-windows-e95baabbb45f20318b5df3010202e3c3c9cf0715.zip
Additional pause keybinding
Allowing multiple keys per command would be nice, but this works for now. See #228.
Diffstat (limited to 'src')
-rw-r--r--src/settings.h3
-rw-r--r--src/ui_dispatch.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/settings.h b/src/settings.h
index 59dd7b6..346551d 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -55,8 +55,9 @@ typedef enum {
BAR_KS_VOLDOWN = 21,
BAR_KS_VOLUP = 22,
BAR_KS_MANAGESTATION = 23,
+ BAR_KS_PLAYPAUSE2 = 24,
/* insert new shortcuts _before_ this element and increase its value */
- BAR_KS_COUNT = 24,
+ BAR_KS_COUNT = 25,
} BarKeyShortcutId_t;
#define BAR_KS_DISABLED '\x00'
diff --git a/src/ui_dispatch.h b/src/ui_dispatch.h
index acd0f67..d43642a 100644
--- a/src/ui_dispatch.h
+++ b/src/ui_dispatch.h
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2010-2011
+Copyright (c) 2010-2012
Lars-Dominik Braun <lars@6xq.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -93,6 +93,8 @@ static const BarUiDispatchAction_t dispatchActions[BAR_KS_COUNT] = {
"act_volup"},
{'=', BAR_DC_STATION, BarUiActManageStation, "delete seeds/feedback",
"act_managestation"},
+ {' ', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, NULL,
+ "act_songpause2"},
};
#include <piano.h>