summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tui.go b/tui.go
index 1f06598..d1ca5f0 100644
--- a/tui.go
+++ b/tui.go
@@ -213,8 +213,7 @@ func init() {
pages.SwitchToPage("main") // or whatever your main page is named
})
confirmModal.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
- switch event.Key() {
- case tcell.KeyRune:
+ if event.Key() == tcell.KeyRune {
switch event.Rune() {
case 'y', 'Y':
persona := cfg.UserRole