summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-16 18:16:25 -0400
committerPietro Gagliardi <[email protected]>2014-05-16 18:16:25 -0400
commit13397f91ee57a41f54d13557cbf8097522cb8dc9 (patch)
tree37c935000c20c5e8f5d8e9be5327312f8b6f7518 /area.go
parentda2bd70192933f190d9c2b9b140698655b4efcec (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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/area.go b/area.go
index fbc629e..9f98c29 100644
--- a/area.go
+++ b/area.go
@@ -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) {