diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-30 09:57:44 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-30 09:57:44 -0400 |
| commit | 33155f7496a818a1ed83fe49cccb63be7842bc81 (patch) | |
| tree | bbb14af3d92becf7d5ca5abfb28630a2b413ad93 /test/kbtest.go | |
| parent | e032807546a96e6489d18a0e42ced51b7c31a55c (diff) | |
Reverted everything back to the old API.
Diffstat (limited to 'test/kbtest.go')
| -rw-r--r-- | test/kbtest.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/kbtest.go b/test/kbtest.go index 4e97708..df00613 100644 --- a/test/kbtest.go +++ b/test/kbtest.go @@ -73,19 +73,13 @@ func (a *keyboardArea) Key(e KeyEvent) (repaint bool) { return true } -type kbhandler struct{} -func (kbhandler) Event(e Event, d interface{}) { - if e == Closing { - *(d.(*bool)) = true - } -} - 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.Open(a) + <-w.Closing } var ( @@ -219,8 +213,6 @@ var modpoints = map[Modifiers]image.Point{ Super: image.Pt(61, 199), } -// TODO move the following to its own file - // source: http://openclipart.org/image/800px/svg_to_png/154537/1312973798.png (medium image) via http://openclipart.org/detail/154537/us-english-keyboard-layout-v0.1-by-nitiraseem var kbpic = []byte{ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, |
