Mercurial > mplayer.hg
changeset 35965:7038dec225b1
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.
author | reimar |
---|---|
date | Mon, 25 Mar 2013 22:54:54 +0000 |
parents | 3ebf8c880e07 |
children | fab37d38b77c |
files | osdep/keycodes.h |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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,