Clarified the previous commit.

This commit is contained in:
Pietro Gagliardi 2014-04-14 12:51:20 -04:00
parent a29abd11c0
commit 3cb3d5f97e
1 changed files with 6 additions and 1 deletions

View File

@ -169,7 +169,12 @@ type KeyEvent struct {
ExtKey ExtKey
// (TODO Modifiers alone needs to be figured out)
// If a Key or ExtKey is pressed with modifiers held down, then a KeyEvent with only Key/ExtKey and no Modifiers WILL NOT be sent, but a KeyEvent with only Modifiers and no Key/ExtKey WILL.
// If a Key or ExtKey is pressed with Modifiers, then the following events WILL be sent:
// [Modifiers != 0, Key/ExtKey == 0] (as the Modifiers keypress(es) will register separately)
// [Modifiers != 0, Key/ExtKey != 0]
// and the following WILL NOT be:
// [Modifiers == 0, Key/ExtKey != 0]
// unless the Modifiers were pressed after/released before the Key/ExtKey was.
Modifiers Modifiers
// If Up is true, the key was released; if not, the key was pressed.