summaryrefslogtreecommitdiff
path: root/test/kbtest.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-01 09:33:49 -0400
committerPietro Gagliardi <[email protected]>2014-07-01 09:33:49 -0400
commit969700f790abbdb08befbeccfaa2e048299a7e6f (patch)
treec224d148445ca78a21cc36081750c738ab59943d /test/kbtest.go
parentf4963e909bd1512b30de8d05e9a064183df5fdc8 (diff)
Removed WindowHandler.
Diffstat (limited to 'test/kbtest.go')
-rw-r--r--test/kbtest.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/kbtest.go b/test/kbtest.go
index 9945772..d8bcb3b 100644
--- a/test/kbtest.go
+++ b/test/kbtest.go
@@ -73,15 +73,11 @@ func (a *keyboardArea) Key(e KeyEvent) (repaint bool) {
return true
}
-type kbhandler struct{}
-func (kbhandler) Event(e Event, d interface{}) {
-}
-
var doKeyboard = flag.Bool("kb", false, "run keyboard test (overrides -areabounds)")
func kbTest() {
wid, ht, ah := mkkbArea()
a := NewArea(wid, ht, ah)
- w := NewWindow("Hi", wid, ht, kbhandler{})
+ w := NewWindow("Hi", wid, ht)
w.Closing = func() bool { return true }
w.Open(a)
}