Setting Common User Access (CUA) Standard Cursor Movement
The defaults described for cursor movement in Vermont Views applications allow for a variety of movement alternatives. Using the appropriate form level options and event table replacements, it is possible to implement the navigation keyboard interface specified in the CUA guidelines. Vermont Views provides a header file, vv_cua.h, that makes this task automatic. To disable the standard Vermont Views keyboard interface and enable the CUA keyboard interface, simply #include vv_cua.h before vv_main.h in your main program.
A brief discussion of CUA form navigation follows:
- nArrow keys move only within a field. They cannot be used to move between fields.
- nTab (KEY_TAB) and Shift-Tab (KEY_STAB) move in processing order between fields. If the cursor is on the last field on the form, Tab will move to the first field on the form. If the cursor is on the first field on the form, Shift-Tab will move to the last field on the form.
- nEnter (KEY_ENTER) exits the form.
- nEsc (KEY_ESC) quits the form.
- nF10 (KEY_F10) activates a system menu button if one exists for the form. F10 will not exit the form.