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.
精彩评论