summaryrefslogtreecommitdiff
path: root/area_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-16 19:52:28 -0400
committerPietro Gagliardi <[email protected]>2014-05-16 19:52:28 -0400
commitdc179b3a44581d0e2da5748c69792de7b98d96a6 (patch)
tree4b557da21736949b4b0938358e6cb74fa6720178 /area_darwin.go
parent5176b0e9dd6e8b9440ca9a8568eec0d6340692cb (diff)
Implemented the Super and order changes on Mac OS X. Meta is irrelevant here.
Diffstat (limited to 'area_darwin.go')
-rw-r--r--area_darwin.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/area_darwin.go b/area_darwin.go
index 0d95adf..6fc3a9b 100644
--- a/area_darwin.go
+++ b/area_darwin.go
@@ -51,17 +51,17 @@ func parseModifiers(e C.id) (m Modifiers) {
)
mods := uintptr(C.modifierFlags(e))
- if (mods & _NSShiftKeyMask) != 0 {
- m |= Shift
- }
if (mods & _NSControlKeyMask) != 0 {
- // TODO
+ m |= Ctrl
}
if (mods & _NSAlternateKeyMask) != 0 {
m |= Alt
}
+ if (mods & _NSShiftKeyMask) != 0 {
+ m |= Shift
+ }
if (mods & _NSCommandKeyMask) != 0 {
- m |= Ctrl
+ m |= Super
}
return m
}