summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-14 12:51:20 -0400
committerPietro Gagliardi <[email protected]>2014-04-14 12:51:20 -0400
commit3cb3d5f97ed8522891b23f3f102a7ac86ae45cb7 (patch)
tree7450c9e585e41cc910509aa50d58a7f9e1679f0b
parenta29abd11c03960096ec3efa63741997eff8494ca (diff)
Clarified the previous commit.
-rw-r--r--area.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/area.go b/area.go
index cdafba5..c3c47da 100644
--- a/area.go
+++ b/area.go
@@ -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.