• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. SWT Menus > Adding Keyboard Shortcuts

3.9. Adding Keyboard Shortcuts

You've already seen how adding a separator bar to a menu can make a drop-down more visually pleasing, but users expect another professional touch from a menu system—the ability to access the menu items via keyboard keystroke combinations.

3.9.1. How do I do that?

SWT provides two approaches to assigning keyboard combinations to menu items. The approach you use depends upon which of the two keyboard shortcut types you wish to provide.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint