Fix curses return key when using -k

Hello,

There is a small incoherency in curses_keys.h, which makes it fail to
emit \n when using e.g. -k fr: curses2keysym transforms \r and 0x157
into \n, but name2keysym binds \r with Return, not \n.  The patch below
fixes that.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
Samuel Thibault 2010-02-28 15:35:19 +01:00 committed by Andrzej Zaborowski
parent e68dd28fd7
commit 942cef3799
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ static const name2keysym_t name2keysym[] = {
/* Special keys */
{ "BackSpace", 0x07f },
{ "Tab", '\t' },
{ "Return", '\r' },
{ "Return", '\n' },
{ "Right", 0x105 },
{ "Left", 0x104 },
{ "Up", 0x103 },