keyboardshortcuts shows wrong key on the NSMenu
pradeepb28 opened this issue · 1 comments
pradeepb28 commented
I have a shortcut that I had set with option+tab to open an app, it works accordingly but on the UI it shows command + option symbols.
I used KeyboardShortcuts.getShorcut(...).description to assign the value on the UI
When I simply use print statement, it shows correct symbols.
Conclusion: On the UI it shows different symbol but functionally it works as expected as option+tab commands
sindresorhus commented
That is the wrong way to do it. See:
KeyboardShortcuts/Sources/KeyboardShortcuts/NSMenuItem++.swift
Lines 14 to 41 in 0dcedd5