Cleanup: use named constant

This commit is contained in:
Stefan Haller 2026-04-01 15:17:30 +02:00
parent 679a196dc7
commit e633ae6aa6

View file

@ -296,7 +296,7 @@ func (g *Gui) pollEvent() GocuiEvent {
ch = tev.Rune()
if ch == ' ' {
// special handling for spacebar
k = 32 // tcell keys ends at 31 or starts at 256
k = tcell.Key(KeySpace)
ch = rune(0)
}
}