Clarified the previous commit.
This commit is contained in:
parent
a29abd11c0
commit
3cb3d5f97e
7
area.go
7
area.go
|
@ -169,7 +169,12 @@ type KeyEvent struct {
|
||||||
ExtKey ExtKey
|
ExtKey ExtKey
|
||||||
|
|
||||||
// (TODO Modifiers alone needs to be figured out)
|
// (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
|
Modifiers Modifiers
|
||||||
|
|
||||||
// If Up is true, the key was released; if not, the key was pressed.
|
// If Up is true, the key was released; if not, the key was pressed.
|
||||||
|
|
Loading…
Reference in New Issue