提交 942cef37 编写于 作者: S Samuel Thibault 提交者: Andrzej Zaborowski

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: NSamuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: NAndrzej Zaborowski <andrew.zaborowski@intel.com>
上级 e68dd28f
......@@ -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 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册