From 2c219e31fd892ac552ba4fd2667212c846011988 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 9 Aug 2011 19:13:35 -0400 Subject: Swap Control and Command key definitions on Mac OSX. 'c' is now Control and 'm' is Command. --- src/textadept.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/textadept.c b/src/textadept.c index 057742a6..a9e7bda4 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -22,9 +22,8 @@ #elif __OSX__ #include #include "igemacintegration/ige-mac-menu.h" -#define GDK_CONTROL_MASK 1 << 3 // Command key (GDK_MOD1_MASK) -#define GDK_MOD1_MASK 1 << 7 // Alt/option key (GDK_MOD5_MASK) -#define GDK_MOD5_MASK 1 << 2 // Control key (GDK_CONTROL_MASK) +#define GDK_MOD1_MASK 1 << 7 // Alt/option key (1 << 7 == GDK_MOD5_MASK) +#define GDK_MOD5_MASK 1 << 3 // Command key (1 << 3 == GDK_MOD1_MASK) #elif __BSD__ #include #include -- cgit v1.2.3