Closing window on 'q' instead of space

since it fits my brain better, was a leftover from the x-go-binding
example.
cat-town
Dan Buch 12 years ago
parent 809e5ae69e
commit b7480b78a8

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

Loading…
Cancel
Save