aboutsummaryrefslogtreecommitdiff
path: root/curses_keys.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@gnu.org>2010-02-28 15:35:19 +0100
committerAndrzej Zaborowski <balrog@zabor.org>2010-03-03 00:20:06 +0100
commit942cef3799d9f3c4fd0fd77a21b7eca220281af9 (patch)
tree8f58418fd7d33993d8db1903ff3aa0cd9c0ed481 /curses_keys.h
parente68dd28fd7e7b2a157f7dbdc98c7f37a31c1f795 (diff)
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>
Diffstat (limited to 'curses_keys.h')
-rw-r--r--curses_keys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/curses_keys.h b/curses_keys.h
index a6e41cf4e4..6030720949 100644
--- a/curses_keys.h
+++ b/curses_keys.h
@@ -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 },