diff options
Diffstat (limited to 'internal/ui/table.go')
| -rw-r--r-- | internal/ui/table.go | 8 |
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 } |
