The keys only work after you open the context menu. Alt-o-v won't do anything.
The 'Reverse Role Order' command reverses the role order for all fact type arities, not just binaries, so 'swap role order' wasn't correct for this command. The 'swap role order' text appears only for binaries (otherwise, you 'll see 'move role left' or 'move role right'). Given that 'reverse role order' notion is equivalent to 'swap role order' for binaries, but 'swap role order' is not equivalent to 'reverse role order', I wouldn't mind renaming this.
The issue then is that we have two 'reverse role order' commands (one for the FactType shape, one for the role selection), which seems a little odd. Alternately, I could just leave the 'move role left' and 'move role right' text alone instead of changing it for binary fact types. I think most users realize that moving the right role left/left role right swaps the roles and reverses the role order. [This way, I also wouldn't lose track of the accelerator key by putting command text in a resource file separate from the command file.]
The term 'shortcut keys' is generally associated with a single keystroke (generally modified with some combination of Ctrl/Alt/Shift) that can be used to invoke a commands without using menus. Accelerators are single characters used to navigate through menus. For example, 'Ctrl-S' is the shortcut key for save, and 'alt-f-s' provides the standard accelerator sequence for the same command.
In VS, you can customize your shortcut keys for any command.
-
Right-click anywhere on a blank space in the toolbars and choose the 'Customize...' option.
-
Click the 'Keyboard' button at the bottom of the dialog. (Note that you can also get here with Tools/Options.../Environment/Keyboard
-
Type 'reverse' in the the 'Show commands containing' field.
-
You'll see 'OtherContextMenus.ORMDesignerContextMenu.Orientation.ReverseRoleOrder'. Select it.
-
In the 'Use new shortcut in' dropdown, choose 'ORM Designer'
-
Click in the 'Press shortcut keys' field
-
Hold the Alt key down and type in OV. The field will say 'Alt+O, Alt+V'
-
Click the 'Assign' button (important, or you get nothing).
-
Click OK to close the dialog.
You can now run the Orientation/Reverse Role Order command when a FactType is selected with Alt-OV. Note that it is pretty unusuall to use Alt on its own as the modifier for a shortcut key because it interferes with the menuing system for a lot of characters (FEVTWH are pretty much off limits), so you generally use something like Alt-Shift instead of just alt.
-Matt