Customize the Keyboard

Use can customize the keyboard when working in the Editor by using set key or set action commands.

A set key command, lets you remap the connections between the physical keyboard and the logical keyboard. This remapping is global and affects all Editor files.

You can use set key to use the editor with a keyboard that does not have all of the required keys. For example, if your keyboard does not have the F11 and F12 keys, you can remap the Alt+1 and Alt+2 key combinations to have the same effect:

set key.A-1 F11 
set key.A-2 F12 

Similarly, you can use various accented characters that are not on the keyboard by assigning them to keys. The following example assigns lowercase and uppercase umlauts to the Alt+A and Ctrl+A key combinations, respectively. The lowercase umlaut is represented by ascii code 132, and the uppercase umlaut is represented by ascii code 142.

set key.A-A 132     lowercase umlaut 
set key.C-A 142     uppercase umlaut 

Note: Ctrl and Alt key combinations do not differentiate between uppercase and lowercase characters. For example, using Alt+a or Alt+A in any Editor command yields the same result.

Set action command, lets you program the logical keyboard, and assign a command or set of commands to a key. This programming relates to a single file, so the same key can have a different effect for different files.

When a key is pressed, the Editor performs an action dictated by the corresponding logical key. Many keys have default actions. Any key can be assigned an action using the set action command. For example, the following command makes the F7 key scroll the text in a window up one screen:

set action.F7 scroll screen up 

The operating system reserves some keys, such as F1, and F10.

The set key command is sometimes more useful than a set action because remapping using set key is global. For example, you could define the Ctrl+H key as the help key in all files by using the following Editor command:

set key.C-H F1 

 



Change Editor Tab Settings
Change the Base Editor Font
Change Token Display Attributes
Change Text and Background Color Palettes