]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Fix curses return key when using -k
authorSamuel Thibault <samuel.thibault@gnu.org>
Sun, 28 Feb 2010 14:35:19 +0000 (15:35 +0100)
committerAndrzej Zaborowski <balrog@zabor.org>
Tue, 2 Mar 2010 23:20:06 +0000 (00:20 +0100)
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>
curses_keys.h

index a6e41cf4e4ac1bc4e72e008e4a300cc9506fe2f0..60307209490cf7eb595ec3c089a59afff767a4ea 100644 (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 },