Convert key code into key equivalent string

后端 未结 2 1159
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 07:40

How can I convert a key code, such as kVK_ANSI_1 into a string that I can pass to setKeyEquivalent (so for kVK_ANSI_1, I\'d get

2条回答
  •  抹茶落季
    2020-12-10 07:47

    UCKeyTranslate is probably what you are after https://developer.apple.com/library/mac/#documentation/Carbon/Reference/Unicode_Utilities_Ref/Reference/reference.html

提交回复
热议问题