aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-18 12:32:09 +0200
committerMax Kellermann <max@duempel.org>2008-09-18 12:32:09 +0200
commitccf19a7243df12b3e1b2055661b8da5925222407 (patch)
tree2a8bdc628b57fee41b7983ea557c060bf80615fc /src
parentdcb67250b34dc92aced026516e162a42000f1857 (diff)
downloadmpd-ccf19a7243df12b3e1b2055661b8da5925222407.tar.gz
mpd-ccf19a7243df12b3e1b2055661b8da5925222407.tar.xz
mpd-ccf19a7243df12b3e1b2055661b8da5925222407.zip
screen: don't handle CMD_PLAY
CMD_PLAY is mapped to the Enter key by default. Some screens (mis-)use it for navigation, for entering a directory. The playlist screen actually plays the file under the cursor. On all other screens, pressing Enter may be confusing, since it is more of a "confirmation" key instead of "play". We should probaby add CMD_CONFIRM later, but for now, disable the general CMD_PLAY handler in screen.c. This fixes bug 240.
Diffstat (limited to '')
-rw-r--r--src/screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index e0fa3e1c7..62781fb8a 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -810,9 +810,11 @@ screen_client_cmd(mpdclient_t *c, command_t cmd)
return 0;
switch(cmd) {
+ /*
case CMD_PLAY:
mpdclient_cmd_play(c, MPD_PLAY_AT_BEGINNING);
break;
+ */
case CMD_PAUSE:
mpdclient_cmd_pause(c, !IS_PAUSED(c->status->state));
break;