From a29abd11c03960096ec3efa63741997eff8494ca Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 14 Apr 2014 12:47:49 -0400 Subject: Ensured that pressing Modifiers+Key/ExtKey does not produce an event with just the Key/ExtKey. --- area.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'area.go') diff --git a/area.go b/area.go index eadec19..cdafba5 100644 --- a/area.go +++ b/area.go @@ -168,6 +168,8 @@ type KeyEvent struct { // was pressed. Key and ExtKey will not both be nonzero. 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. Modifiers Modifiers // If Up is true, the key was released; if not, the key was pressed. -- cgit v1.2.3