Made multiple modifier keys undefined; removed the TODO there. If I need to change the behavior I can do it later.

This commit is contained in:
Pietro Gagliardi 2014-06-03 22:26:25 -04:00
parent 3745acf57b
commit bf6c29b39c
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ func (e KeyEvent) EffectiveKey() byte {
// Modifiers indicates modifier keys being held during an event. // Modifiers indicates modifier keys being held during an event.
// There is no way to differentiate between left and right modifier keys. // There is no way to differentiate between left and right modifier keys.
// 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. // As such, what KeyEvents get sent if the user does something unusual with both of a certain modifier key at once is undefined.
type Modifiers uintptr type Modifiers uintptr
const ( const (
Ctrl Modifiers = 1 << iota // the keys labelled Ctrl or Control on all platforms Ctrl Modifiers = 1 << iota // the keys labelled Ctrl or Control on all platforms