8.2 Applicability of CLIM Presentation Translators
Each level of input context is established by a call to accept. The macro with-input-context also establishes a level of input context.
The most common cause of input context nesting is accepting compound objects. For example, you might define a command calledShow File
, which reads a sequence of pathnames. When reading the argument to theShow File
command, the input context contains pathname nested inside of(sequence clim:pathname)
. Acceptable keyboard input is a sequence of pathnames separated by commas. A presentation translator that translates to a(sequence clim:pathname)
supplies the entire argument to the command, and the command processor moves on to the next argument. A presentation translator that translates to a pathname is also applicable. It supplies a single element of the sequence being built up, and the command processor awaits additional input for this argument, or the entry of aSPACE
orRETURN
to terminate the argument.
When the input context is nested, sensitivity considers only the innermost context type that has any applicable presentation translators for the currently pressed chord of modifier keys.
Generated with Harlequin WebMaker