From ccf19a7243df12b3e1b2055661b8da5925222407 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 18 Sep 2008 12:32:09 +0200 Subject: [PATCH] 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. --- src/screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/screen.c b/src/screen.c index e0fa3e1..62781fb 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; -- 2.30.2