# HG changeset patch # User reimar # Date 1364252094 0 # Node ID 7038dec225b11d989c6288ed234440b37f31fecc # Parent 3ebf8c880e078a3c5d086710bc553d88faaefcc4 Fix KEY_BACKSPACE, KEY_DELETE and KEY_ESC to map to their ASCII equivalents. Also avoids some issues with our X11 key string lookup ending up translating these to their ASCII values, which before resulted in "unknown key" messages. diff -r 3ebf8c880e07 -r 7038dec225b1 osdep/keycodes.h --- a/osdep/keycodes.h Mon Mar 25 00:46:12 2013 +0000 +++ b/osdep/keycodes.h Mon Mar 25 22:54:54 2013 +0000 @@ -26,17 +26,17 @@ #define KEY_BASE 0x1000000 enum { + KEY_BACKSPACE = 8, KEY_TAB = 9, KEY_ENTER = 13, + KEY_ESC = 27, + KEY_DELETE = 127, /* Control keys */ - KEY_BACKSPACE = KEY_BASE, - KEY_DELETE, - KEY_INSERT, + KEY_INSERT = KEY_BASE, KEY_HOME, KEY_END, KEY_PAGE_UP, KEY_PAGE_DOWN, - KEY_ESC, /* Cursor movement */ KEY_RIGHT = KEY_BASE + 16, KEY_LEFT,