开发者

Load different menubars for PC vs Mac users

开发者 https://www.devze.com 2023-02-03 07:44 出处:网络
Each entry in the menubar for my ap开发者_开发知识库p contains a shortcut key suggestion (e.g. Undo (CTRL+Z)). Is there an easy way to dynamically customize the suggestion string depending on whether

Each entry in the menubar for my ap开发者_开发知识库p contains a shortcut key suggestion (e.g. Undo (CTRL+Z)). Is there an easy way to dynamically customize the suggestion string depending on whether the app is being used on a pc or on a mac?

thank you

f


Use Capabilities.version to get the version information. The first three letters will tell you the host platform ("WIN", "MAC", or "LNX"). Use a string variable to store the text information ("Ctrl" or "Cmd") for your suggestion accordingly.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号