fix warning from linter

This commit is contained in:
Kovid Goyal
2025-12-02 23:37:53 +05:30
parent 4e2aa7d151
commit fee4cb0975

View File

@@ -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 {