diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-30 20:39:57 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-30 20:39:57 -0400 |
| commit | 3258c1daed990c9f21294980942ba99581d57e45 (patch) | |
| tree | 5720a5b81ee4f9dcf5490075cf20f2ecec09639f /events_darwin.go | |
| parent | 6abea02278ad1aac5d028298e61bada92b43c4ca (diff) | |
Added right Command to events_darwin.go.
Diffstat (limited to 'events_darwin.go')
| -rw-r--r-- | events_darwin.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/events_darwin.go b/events_darwin.go index 27f479d..97222eb 100644 --- a/events_darwin.go +++ b/events_darwin.go @@ -107,13 +107,17 @@ var keycodeExtKeys = map[uintptr]ExtKey{ } var keycodeModifiers = map[uintptr]Modifiers{ - 0x37: Ctrl, // left command (TODO both commands?) + 0x37: Ctrl, // left command 0x38: Shift, // left shift 0x3A: Alt, // left option // 0x3B: kVK_Control, 0x3C: Shift, // right shift 0x3D: Alt, // right alt // 0x3E: kVK_RightControl, + + // the following is not in Events.h for some reason + // thanks to Nicole from irc.badnik.net + 0x36: Ctrl, // right command } func fromKeycode(keycode uintptr) (ke KeyEvent, ok bool) { |
