Add some actions for songs

This commit is contained in:
Přemysl Eric Janouch 2016-10-05 06:44:13 +02:00
parent 53ac2cf2c0
commit c6e337e5c5
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

@ -1195,6 +1195,11 @@ app_goto_tab (int tab_index)
XX( MPD_VOLUME_UP, "Increase volume" ) \ XX( MPD_VOLUME_UP, "Increase volume" ) \
XX( MPD_VOLUME_DOWN, "Decrease volume" ) \ XX( MPD_VOLUME_DOWN, "Decrease volume" ) \
\ \
XX( MPD_ADD, "Add song to playlist" ) \
XX( MPD_REPLACE, "Replace playlist with song" ) \
\
XX( CHOOSE, "Choose item" ) \
\
XX( SCROLL_UP, "Scroll up" ) \ XX( SCROLL_UP, "Scroll up" ) \
XX( SCROLL_DOWN, "Scroll down" ) \ XX( SCROLL_DOWN, "Scroll down" ) \
\ \
@ -1474,6 +1479,10 @@ g_default_bindings[] =
{ "C-f", USER_ACTION_GOTO_PAGE_NEXT }, { "C-f", USER_ACTION_GOTO_PAGE_NEXT },
// Not sure how to set these up, they're pretty arbitrary so far // Not sure how to set these up, they're pretty arbitrary so far
{ "Enter", USER_ACTION_CHOOSE },
{ "a", USER_ACTION_MPD_ADD },
{ "r", USER_ACTION_MPD_REPLACE },
{ "Left", USER_ACTION_MPD_PREVIOUS }, { "Left", USER_ACTION_MPD_PREVIOUS },
{ "Right", USER_ACTION_MPD_NEXT }, { "Right", USER_ACTION_MPD_NEXT },
{ "h", USER_ACTION_MPD_PREVIOUS }, { "h", USER_ACTION_MPD_PREVIOUS },