summaryrefslogtreecommitdiff
path: root/internal/ui/table.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-27 00:10:51 +0300
committerPaul Buetow <paul@buetow.org>2026-06-27 00:10:51 +0300
commit25c1fe6439892e9b5ba5bf36c195cfe538490352 (patch)
tree875eafb1633c2c503590c9e1c74c51fae92b1535 /internal/ui/table.go
parentbca7d87f11a3ee88c75dc1ed706009d63022ef98 (diff)
fr0 review fixes: preserve recurrence error cmd, normalize agent hotkey ctrl+ case, detail-view ctrl+r, esc-reset test
Diffstat (limited to 'internal/ui/table.go')
-rw-r--r--internal/ui/table.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go
index ea24051..b1e8914 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -1431,7 +1431,7 @@ func (m *Model) agentFilterHotkeyLabel() string {
}
func validateAgentFilterHotkey(key string) error {
- key = strings.TrimSpace(key)
+ key = normalizeAgentFilterHotkey(key)
if key == "" {
return nil
}
@@ -1462,7 +1462,8 @@ func normalizeAgentFilterHotkey(key string) string {
if key == "" || len(key) == 1 {
return key
}
- switch strings.ToLower(key) {
+ lowerKey := strings.ToLower(key)
+ switch lowerKey {
case "down":
return "down"
case "end":
@@ -1488,6 +1489,9 @@ func normalizeAgentFilterHotkey(key string) string {
case "up":
return "up"
}
+ if strings.HasPrefix(lowerKey, "ctrl+") {
+ return "ctrl+" + strings.ToLower(key[5:])
+ }
return key
}