67
edits
| Line 63: | Line 63: | ||
When the user presses an arrow key (left or right), the following process is initiated: | When the user presses an arrow key (left or right), the following process is initiated: | ||
* The system determines the logical position associated with the visual position to the left (or right) of the current visual position | * The system determines the logical position associated with the visual position to the left (or right) of the current visual position (which is derived from the current logical position and the current hint). In addition to logical position, the system also determines the new value for the "hint", to ensure the caret is indeed painted in the intended visual position. The new logical position and hint are stored in the selection object. | ||
* The system then uses he logical-to-visual mapping algorithm to map the new selection object (logical position + hint) back to a visual position, where the caret is displayed. | * The system then uses he logical-to-visual mapping algorithm to map the new selection object (logical position + hint) back to a visual position, where the caret is displayed. | ||
edits