From: Jonathan Neuschäfer Date: Sat, 27 Aug 2011 12:37:16 +0000 (+0200) Subject: command: use RET instead of 13 for '\r' X-Git-Tag: release-0.20~95^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c16625691b44a0af22bdaf041929c035a54419cf;p=ncmpc.git command: use RET instead of 13 for '\r' --- diff --git a/src/command.c b/src/command.c index 7db5f68..68b8d1e 100644 --- a/src/command.c +++ b/src/command.c @@ -55,6 +55,7 @@ #define TAB 0x09 #define STAB 0x161 #define ESC 0x1B +#define RET '\r' #define F1 KEY_F(1) #define F2 KEY_F(2) #define F3 KEY_F(3) @@ -116,7 +117,7 @@ static command_definition_t cmds[] = { /* player commands */ - { { 13, 0, 0 }, 0, CMD_PLAY, "play", + { { RET, 0, 0 }, 0, CMD_PLAY, "play", N_("Play/Enter directory") }, { { 'P', 0, 0 }, 0, CMD_PAUSE,"pause", N_("Pause") }, @@ -271,7 +272,7 @@ key2str(int key) return _("Undefined"); case ' ': return _("Space"); - case 13: + case RET: return _("Enter"); case BS: return _("Backspace");