summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.go')
-rw-r--r--test/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/main.go b/test/main.go
index d4a94e3..b2d6a6d 100644
--- a/test/main.go
+++ b/test/main.go
@@ -133,6 +133,10 @@ func (a *areaHandler) Paint(rect image.Rectangle) *image.NRGBA {
func (a *areaHandler) Mouse(e MouseEvent) {
// fmt.Printf("%#v\n", e)
}
+func (a *areaHandler) Key(e KeyEvent) bool {
+ fmt.Printf("%#v\n", e)
+ return false
+}
var doArea = flag.Bool("area", false, "run area test instead")
func areaTest() {