As you would expect, the arrow keys are one of the primary means
of navigating from one place to another in an expression.
You can use the expression in the above example link to
follow along and try out the various arrows as they are discussed.
The basic inorder traversal defined in the
previous subsection is bound to the
Left and Right
arrow keys. Successively pressing the
Left arrow moves through the traversal
in order, and the Right arrow key moves
backward through the traversal.
Using these keys you can see the complete set of places that
can be visited as the current expression.
Each expression has a unique well-defined parent element
that immediately encloses it and is structurally well-formed.
The Up arrow key moves the
current expression to its parent element, and
the Down arrow key moves the
current expression to either its first or last
child element as determined by whether the
insertion point was to the left or right,
respectively, of the previous current expression.
Typing Ctrl+Up moves the
expression cursor to the outermost element in the
expression, and typing Ctrl+Down
moves the expression cursor to the innermost element in the
current expression, either the leftmost or rightmost depending on
whether the insertion point was to the left or right, respectively,
of the previous current expression.
Much of the time the left and right arrows move in increments that
are much smaller than desired. In that case,
typing Ctrl+Left moves to the
previous sibling element of the current expression
and Ctrl+Right moves to the
next sibling element of the current expression.
The Home key moves to the
first sibling element of the current expression, and
End key moves to the last.