From 370649ec51fabbd3f68c680b65551a3225abcd49 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 1 Jun 2014 23:34:26 -0400 Subject: Decided to drop the whole handled thing with Area events and just continue the event chain if needed. Same for MousEvent; will have to document that. This is just the test program for now. --- test/kbtest.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/kbtest.go') diff --git a/test/kbtest.go b/test/kbtest.go index 120a5fc..6765c49 100644 --- a/test/kbtest.go +++ b/test/kbtest.go @@ -44,7 +44,7 @@ func markkey(dest *image.RGBA, keypt image.Point, m Modifiers) { draw.Draw(dest, xr, xi, image.ZP, draw.Over) } -func (a *keyboardArea) Key(e KeyEvent) (handled bool, repaint bool) { +func (a *keyboardArea) Key(e KeyEvent) (repaint bool) { a.lock.Lock() defer a.lock.Unlock() @@ -68,9 +68,9 @@ func (a *keyboardArea) Key(e KeyEvent) (handled bool, repaint bool) { markkey(a.kbd, modpoints[Super], m &^ Super) } default: - return false, false + return false } - return true, true + return true } var doKeyboard = flag.Bool("kb", false, "run keyboard test (overrides -areabounds)") -- cgit v1.2.3