Cleanup: use named constant

This commit is contained in:
Stefan Haller
2026-04-30 22:14:26 +02:00
parent 679a196dc7
commit e633ae6aa6
+1 -1
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)
}
}