[vlc-devel] commit: Use standard ASCII for ^H, ^I, ^M and escape ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Feb 3 17:29:28 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 3 18:28:11 2010 +0200| [7a25e2badf0af4e4201780e2383f315f43f9579d] | committer: Rémi Denis-Courmont
Use standard ASCII for ^H, ^I, ^M and escape
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a25e2badf0af4e4201780e2383f315f43f9579d
---
include/vlc_keys.h | 8 ++++----
modules/gui/macosx/intf.m | 1 -
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/include/vlc_keys.h b/include/vlc_keys.h
index 46df01f..b647b56 100644
--- a/include/vlc_keys.h
+++ b/include/vlc_keys.h
@@ -37,12 +37,15 @@
#define KEY_MODIFIER_COMMAND 0x10000000
#define KEY_UNSET 0x00000000
+#define KEY_BACKSPACE 0x08
+#define KEY_TAB 0x09
+#define KEY_ENTER 0x0D
+#define KEY_ESC 0x1B
/* End of Unicode range: 0x0010FFFF */
#define KEY_LEFT 0x00210000
#define KEY_RIGHT 0x00220000
#define KEY_UP 0x00230000
#define KEY_DOWN 0x00240000
-#define KEY_ENTER 0x00260000
#define KEY_F1 0x00270000
#define KEY_F2 0x00280000
#define KEY_F3 0x00290000
@@ -60,11 +63,8 @@
#define KEY_INSERT 0x00350000
#define KEY_DELETE 0x00360000
#define KEY_MENU 0x00370000
-#define KEY_ESC 0x00380000
#define KEY_PAGEUP 0x00390000
#define KEY_PAGEDOWN 0x003A0000
-#define KEY_TAB 0x003B0000
-#define KEY_BACKSPACE 0x003C0000
#define KEY_BROWSER_BACK 0x003F0000
#define KEY_BROWSER_FORWARD 0x00400000
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index ed1dc37..31df950 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1289,7 +1289,6 @@ static struct
{ NSCarriageReturnCharacter, KEY_ENTER },
{ NSEnterCharacter, KEY_ENTER },
{ NSBackspaceCharacter, KEY_BACKSPACE },
- { (unichar) 0x1b, KEY_ESC },
{0,0}
};
More information about the vlc-devel
mailing list