aboutsummaryrefslogtreecommitdiff
path: root/ui/curses_keys.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@gnu.org>2010-10-19 19:48:20 +0200
committerAndrzej Zaborowski <balrog@zabor.org>2010-10-21 18:31:28 +0200
commitd03703c81a202cea156811e5dbc8e88627c19986 (patch)
treebc22fad9e369b7a770ebdf6c11ca51d5fd14d159 /ui/curses_keys.h
parent633aa0acfe2c4d3e56acfe28c912796bf54de6d3 (diff)
downloadqemu-d03703c81a202cea156811e5dbc8e88627c19986.zip
qemu-d03703c81a202cea156811e5dbc8e88627c19986.tar.gz
qemu-d03703c81a202cea156811e5dbc8e88627c19986.tar.bz2
curses: Fix control-{@[\]^_} and ESC
control-{@[\]^_} shouldn't get the 'a' - 'A' offset for correct translation. ESC is better simulated as escape key. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Andrew Zaborowski <balrogg@gmail.com>
Diffstat (limited to 'ui/curses_keys.h')
-rw-r--r--ui/curses_keys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/curses_keys.h b/ui/curses_keys.h
index 1decd11..c0d5eb4 100644
--- a/ui/curses_keys.h
+++ b/ui/curses_keys.h
@@ -55,6 +55,7 @@ static const int curses2keysym[CURSES_KEYS] = {
[0x7f] = KEY_BACKSPACE,
['\r'] = KEY_ENTER,
['\n'] = KEY_ENTER,
+ [27] = 27,
[KEY_BTAB] = '\t' | KEYSYM_SHIFT,
};