Assigning a Shortcut Key to Menu Items

You can assign shortcut keys to menu items.

If you specify the same shortcut for more than one MenuItem, the command that occurs later in the menu hierarchy takes precedence.

Some shortcut key combinations, such as Ctrl+C, Ctrl+V, and Ctrl+X, are commonly used by many applications. Avoid using these combinations when you assign shortcut keys for your application.

  1. Select the menu item to which to assign a shortcut key.
  2. In the Menu Item category in the Properties view, select a key from the ShortcutKey drop-down list.
  3. Change ShortcutAlt, ShortcutCtrl, or Shortcut Shift to True to create a key combination.
    PowerBuilder displays the shortcut key next to the menu item name.