From e633ae6aa60341b6eb1bec09dc31685b460bcd99 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 1 Apr 2026 15:17:30 +0200 Subject: [PATCH] Cleanup: use named constant --- pkg/gocui/tcell_driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gocui/tcell_driver.go b/pkg/gocui/tcell_driver.go index 696975724..1833e55f7 100644 --- a/pkg/gocui/tcell_driver.go +++ b/pkg/gocui/tcell_driver.go @@ -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) } }