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
Thank you for creating this library, it's been essential for my clipboard manager - https://github.com/p0deje/Maccy. I can't even imagine handling all the complexity of converting keycodes to characters and back myself. 🙏🏻
I have been investigating one of the bugs reported by users p0deje/Maccy#482 (comment) and it seems like it could be a problem in the Sauce library itself.
On specific keyboard layouts, for example, Czech, the numbers row is mapped to accented characters and numbers are available by pressing ⇧.
I am trying to find a proper character to pass to NSMenuItem.keyEquivalent and I would normally do something like this:
letkeyCode=Sauce.shared.keyCode(for:.one)letchar=Sauce.shared.character(for:Int(keyCode), cocoaModifiers:[])
// ▿ Optional<String>
// - some : "1"
However, I would expect "+" to be returned in this case. I traced the problem to CoreServices.UCKeyTranslate but I'm not sure how to properly use it to find a necessary character.
I would happily submit PR to fix the problem but need some guidance.
The text was updated successfully, but these errors were encountered:
Thank you for creating this library, it's been essential for my clipboard manager - https://github.com/p0deje/Maccy. I can't even imagine handling all the complexity of converting keycodes to characters and back myself. 🙏🏻
I have been investigating one of the bugs reported by users p0deje/Maccy#482 (comment) and it seems like it could be a problem in the Sauce library itself.
On specific keyboard layouts, for example, Czech, the numbers row is mapped to accented characters and numbers are available by pressing ⇧.
I am trying to find a proper character to pass to
NSMenuItem.keyEquivalent
and I would normally do something like this:However, I would expect
"+"
to be returned in this case. I traced the problem toCoreServices.UCKeyTranslate
but I'm not sure how to properly use it to find a necessary character.I would happily submit PR to fix the problem but need some guidance.
The text was updated successfully, but these errors were encountered: