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:
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…
Reference in New Issue
Block a user