Typing and Inline Input
MLTE assumes that your application filters out all characters it wants to handle before passing key-down events to MLTE. MLTE then processes characters according to the following list of rules. (Unicode encodings are designated as Uxxx and Mac OS encodings are designated as $xxx, where xxx is replaced by a value.)
-
Inserting: All 1-byte and 2-byte characters starting at ($20, U0020) except Forward Delete ($7F, U007F), as well as the Tab character ($09, U0009), are inserted into the text. Return ($0D, U000D) is inserted. Characters entered through inline input are always inserted.
-
Selecting: All combinations involving the arrow keys ($1C-$1F, U001C-U001F) are interpreted as selection operations (see The Selection Range, the Insertion Point, and Highlighting in MLTE). Other than as specified in
Macintosh Human Interface Guidelines,
they do interrupt typing commands in MLTE.
-
Scrolling: The Home ($01, U0001) and End ($04, U0004) characters are interpreted to scroll the text block to its logical beginning or end as specified in
Macintosh Human Interface Guidelines.
-
Paging: The Page Up ($0B, U000B) and Page Down ($0C, U000C) characters are interpreted to scroll the text up or down once according to the height of the currently visible portion. They are not part of typing commands, but they also don't interrupt typing commands.
-
Deleting: The Backspace ($08,U0008) and Forward Delete ($7F, U007F) characters first delete the currently selected text (if the selection is nonempty), then delete individual characters logically preceding (Backspace) the insertion point. They are part of typing commands.
-
All other characters are ignored. This includes all key combinations involving the Command key but not involving the arrow keys. They are not part of typing commands, but do not interrupt the typing commands.
Copyright © 2001 Apple Computer, Inc. (Last Updated January 11, 2001)