[MPlayer-cvslog] r36059 - trunk/osdep/keycodes.h
reimar
subversion at mplayerhq.hu
Mon Mar 25 23:54:54 CET 2013
Author: reimar
Date: Mon Mar 25 23:54:54 2013
New Revision: 36059
Log:
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.
Modified:
trunk/osdep/keycodes.h
Modified: trunk/osdep/keycodes.h
==============================================================================
--- trunk/osdep/keycodes.h Mon Mar 25 01:46:12 2013 (r36058)
+++ trunk/osdep/keycodes.h Mon Mar 25 23:54:54 2013 (r36059)
@@ -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,
More information about the MPlayer-cvslog
mailing list