keyboard
keyboard copied to clipboard
How can I make "abbreviation" "case insensitive"?
I mean, I could create a branch for this feature if you really want it implemented, but I'm sure you have either given up on this or found a solution in the past month lol.
Hey 🙋♂️. I had searched pynput and took a long break 😅. Now, I have other planned stuff 🙃
But making improvement will be well of course 😅
I am interesting in this too.
A hacky way to do this is:
class InsensitiveComparisionStr(str):
def __eq__(self, other):
return self.lower() == other.lower()
def __hash__(self):
return hash(self.lower())
add_abbreviation(InsensitiveComparisionStr('your-text')))