14.2 Assigning Functions to Keystrokes

You can assign any PWB function to almost any keystroke. Keystroke assignments, like switches, are displayed in the Current Assignments and Switch Settings window (choose Key Assignments from the Options menu) and can be changed there. Suppose you want to assign the home cursor function to SHIFT+HOME. The default keystroke assignment for home is

home:Goto

If you change the assignment to

home:Shift+Home

SHIFT+HOME moves the cursor to the home (upper left) window position.

You can assign the same function to more than one keystroke. For example, many keystrokes invoke the select function, which selects a text region. The preceding example adds a new keystroke (SHIFT+HOME) for the home function, but it does not remove the previous assignment (GOTO, the 5 key on the keypad).

If you aren't sure whether a keystroke is already assigned, select the Current Assignments and Switch Settings window and press PGDN until you reach the Available Keys table. All unassigned keystrokes are displayed; once a keystroke is assigned, it no longer appears in this table.

There are two limitations on keystroke assignments:

You should not reassign a keystroke that PWB assigns to a menu. For instance, ALT+F displays the File menu; PWB ignores any attempt to reassign ALT+F.

You should not reassign the ALT plus number keys 1– 6 (ALT+1, ALT+2, and so on). These keystrokes are reserved for the file history menu items.

Summary: PWB uses the most recent duplicate key assignment.

A keystroke can invoke only one function. If you accidentally assign a keystroke to more than one function, PWB uses the most recent assignment. For example,

home:Ctrl+A

setfile:Ctrl+A

assigns the CTRL+A keystroke to two different functions, home and setfile. The second assignment overrides the first, assigning CTRL+A to setfile.

You might occasionally want to “unassign,” or disable, a keystroke. This is done by assigning the unassigned function to the keystroke. For example,

unassigned:Ctrl+A

disables CTRL+A. PWB signals an error when you press any unassigned key.

As the list of assigned keystrokes shows, you can use SHIFT+CTRL as a prefix. For PWB to recognize this key combination, SHIFT must come first. For example, to use SHIFT+CTRL with M, you must type SHIFT+CTRL+M, not CTRL+SHIFT+M.