diff --git a/tools/tui/loop/key-encoding.go b/tools/tui/loop/key-encoding.go index 11029f65f..42ae94249 100644 --- a/tools/tui/loop/key-encoding.go +++ b/tools/tui/loop/key-encoding.go @@ -318,7 +318,7 @@ func (self *KeyEvent) MatchesCaseInsensitiveTextOrKey(spec string) bool { if self.MatchesParsedShortcut(ParseShortcut(spec), PRESS|REPEAT) { return true } - return strings.ToLower(self.Text) == strings.ToLower(spec) + return strings.EqualFold(self.Text, spec) } func (self *KeyEvent) MatchesRelease(spec string) bool {