From 13397f91ee57a41f54d13557cbf8097522cb8dc9 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 16 May 2014 18:16:25 -0400 Subject: 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. --- area.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'area.go') 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) { -- cgit v1.2.3