You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you pass an untrimmed string to any of the combo registration functions, it splits that without trimming which results in an invalid key combination.
Eg:
listener.simple_combo(" r",function(){console.log("This function is never called");});
This happens because the combo " r" gets split into ["", "r"] which is not a valid combo. The library should trim the combo before passing it to the split function.
The text was updated successfully, but these errors were encountered:
SneakySensei
changed the title
Untrimmed key combination string silently results in issues
Untrimmed key combination string silently causes in issues
Apr 13, 2023
SneakySensei
changed the title
Untrimmed key combination string silently causes in issues
Untrimmed key combination string silently causes issues
Apr 13, 2023
If you pass an untrimmed string to any of the combo registration functions, it splits that without trimming which results in an invalid key combination.
Eg:
This happens because the combo
" r"
gets split into["", "r"]
which is not a valid combo. The library should trim the combo before passing it to the split function.The text was updated successfully, but these errors were encountered: