property KeyboardMapping : TApxKeyboadMapping
Returns the keyboard mapping object for the emulator.
The KeyboardMapping property is the data structure that holds the various keystroke-to- terminal control sequence mappings for the emulator. The emulator will attempt to map a keystroke provided by a call to the KeyDown method into a terminal control sequence to be sent to the host computer by calling the Get method of the keyboard mapping object.
The emulator creates a keyboard mapping object in its Create constructor and frees it in the Destroy destructor. It is not possible to replace the keyboard mapping object in between those two times. However, it is possible to replace the set of mappings for the keyboard mapping object by calling its LoadFromFile or LoadFromRes methods. This will have the effect of changing the functionality of the emulator.
Note that some emulators will not have a keyboard mapping object; reading KeyboardMapping will return nil. This is because the emulation concerned—for example, the TTY emulator—does not require any keyboard mapping services.