palette closes on esc keypress

This commit is contained in:
Felix Angell 2018-04-29 00:39:49 +01:00
parent c561879fb6
commit 445d645ab9

View File

@ -60,7 +60,7 @@ func (b *CommandPalette) OnUpdate() bool {
}
override := func(k int) bool {
if k != sdl.K_RETURN {
if k != sdl.K_RETURN && k != sdl.K_ESCAPE {
return false
}