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