Advertisement
joanmarie

Take 3

Jan 22nd, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. Returns the keybinding which can be used to activate this action. The string returned *should* contain localized, human-readable, key sequences as they would appear when displayed on screen. It *must* be in the format "mnemonic;sequence;shortcut".
  2.  
  3. Example: For a traditional "New..." menu item, the expected return value would be: "N;Alt+F:N;Ctrl+N" for the English locale and "N;Alt+D:N;Strg+N" for the German locale. If, hypothetically, this menu item lacked a mnemonic, it would be represented by ";;Ctrl+N" and ";;Strg+N" respectively.
  4.  
  5. Details:
  6. The mnemonic key activates the object if it is presently enabled onscreen. This typically corresponds to the underlined letter within the widget. Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for a button.
  7.  
  8. The sequence is the full list of keys which invoke the action even if the relevant element is not currently posted on screen. For instance, for a menu item it posts the keybindings used to open the parent menus before invoking. The sequence string is colon-delimited. Example: "Alt+F:N" in a traditional "New..." menu item.
  9.  
  10. The shortcut, if it exists, will invoke the same action without posting the component or its enclosing menus or dialogs. Example:"Ctrl+N" in a traditional "New..." menu item.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement