Advertisement
joanmarie

doc draft

Jan 22nd, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. Returns a keybinding which can be used to activate this action. The string returned should contain localized, human-readable, key sequences and should be in the format "mnemonic;sequence;shortcut" with each modifier key enclosed in angle brackets.
  2.  
  3. Example: For a traditional "New..." menu item, the expected return value would be:
  4. "n;<Alt>f:n;<Control>n".
  5.  
  6. Details:
  7. 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.
  8.  
  9. The sequence is the full list keys which invokes the action even if the relevant element is not currently posted on screen (for instance, for a menu item it posts the parent menus before invoking). The sequence string is colon-delimited. Example: "<Alt>f:n" in a traditional "New..." menu item.
  10.  
  11. The shortcut, if it exists, will invoke the same action without posting the component or its enclosing menus or dialogs. Example:"<Control>n" in a traditional "New..." menu item.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement