Closing window on 'q' instead of space

since it fits my brain better, was a leftover from the x-go-binding
example.
This commit is contained in:
Dan Buch 2012-12-21 17:29:05 -05:00
parent 809e5ae69e
commit b7480b78a8

View File

@ -112,7 +112,7 @@ func (me *Canvas) Draw() error {
for evt := range me.window.EventChan() { for evt := range me.window.EventChan() {
switch evt := evt.(type) { switch evt := evt.(type) {
case ui.KeyEvent: case ui.KeyEvent:
if evt.Key == ' ' { if evt.Key == 'q' {
return nil return nil
} }
} }