diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-16 18:16:25 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-16 18:16:25 -0400 |
| commit | 13397f91ee57a41f54d13557cbf8097522cb8dc9 (patch) | |
| tree | 37c935000c20c5e8f5d8e9be5327312f8b6f7518 /area.go | |
| parent | da2bd70192933f190d9c2b9b140698655b4efcec (diff) | |
Changed the meaning of the Modifiers keys to be positional, added Super, and pinned down Meta vs. Alt. All but the Meta/Alt one were done after discussion in #go-nuts about how to handle differences in user expectation properly. This is the portable interface only; each platform implementation comes next.
Diffstat (limited to 'area.go')
| -rw-r--r-- | area.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -277,10 +277,10 @@ func (e KeyEvent) EffectiveKey() byte { // As such, what KeyEvents get sent if the user does something unusual with both of a certain modifier key at once is (presently; TODO) undefined. type Modifiers uintptr const ( - Ctrl Modifiers = 1 << iota // the canonical Ctrl keys ([TODO] on Mac OS X, Control on others) - Alt // the canonical Alt keys ([TODO] on Mac OS X, Meta on Unix systems, Alt on others) + Ctrl Modifiers = 1 << iota // the keys labelled Ctrl or Control on all platforms + Alt // the keys labelled Alt or Option or Meta on all platforms Shift // the Shift keys - // TODO add Super + Super // the Super keys on platforms that have one, or the Windows keys on Windows, or the Command keys on Mac OS X ) func checkAreaSize(width int, height int, which string) { |
