diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-23 17:12:30 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-23 17:12:30 -0400 |
| commit | d1376e035d8fccbd16d63d9109a1bab4eb093aba (patch) | |
| tree | cbe30bdf560df9214c5b071eadb64d599ff10a66 /test/main.go | |
| parent | 646e91b25a60e65285fa23b84c6e08af89501bd5 (diff) | |
Added the GTK+ implementation of Area keyboard events. Seems to work fine for now...
Diffstat (limited to 'test/main.go')
| -rw-r--r-- | test/main.go | 4 |
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() { |
