aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-08-09 19:13:35 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-08-09 19:13:35 -0400
commit2c219e31fd892ac552ba4fd2667212c846011988 (patch)
tree0abe3f5a441e6d029bc7c62516d5e46ffdc019df /src
parent7082dbf7ef227c8534150c331a4567bf9e3868e5 (diff)
downloadtextadept-2c219e31fd892ac552ba4fd2667212c846011988.tar.gz
textadept-2c219e31fd892ac552ba4fd2667212c846011988.zip
Swap Control and Command key definitions on Mac OSX.
'c' is now Control and 'm' is Command.
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c5
1 files changed, 2 insertions, 3 deletions
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 <Carbon/Carbon.h>
#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 <sys/types.h>
#include <sys/sysctl.h>