## Selecting

Many commands in Amaya act on the current selection. The current selection can be provided in different ways.

- Selecting with the mouse
  - As usual, you can click with the left mouse button for moving the insertion point.

  - To select some text, drag a region - move the mouse with the left button pressed down and release it when the desired part is selected.

  - You can also extend the selection by clicking with the left button combined with the Shift key.

  - A double click on a character of a word selects the whole word.

  - You can select a whole element, such as a list item by clicking on its bullet or its number.

- Selecting from the keyboard
  - The four arrow keys on the keyboard Left, Right, Up, and Down move the insertion point in the four directions. If there is no visible selection in the document window, a new selection is generated at the top left corner of the window.
  - Combining the key Shift with these four arrow keys (Shift-Left, Shift-Right, Shift-Up, and Shift-Down) extends the current selection in one of these four directions.
  - Keys Home and End move the insertion point to the beginning of the line or the end of the line.
  - The default keyboard command Alt-Enter allows you to extend the current selection to the current word. If the selection is within a link that command will activate the link instead of selecting the current word.
  - Keys Control-Left, Control-Right move the current selection to the beginning of the previous or of the next word.
  - Shift-Control-Left, Shift-Control-Right extend the current selection to the beginning of the previous word or to the end of the next word.
  - Control-Up and Control-Down allow you to scroll the document one line up or one line down.
  - Control-Home and Control-End allow you to scroll to the beginning and to the end of the document.

Whatever the way you make the current selection, the type of the first selected element is displayed at the bottom of the window. It is followed by the types of the enclosing elements in the structure. This may be helpful when the document structure is complex.

### Selecting by Structure

The structure view is especially convenient for quickly selecting large elements. Just click on the blue label that represents the element, or on the name of any of its attributes, or even on its blue vertical line. A large element like a complex table or a long list can be selected with a single click.

Clicking on a black character in the Structure view selects only that character.

A bold text in the structure view represents the value of an attribute that can be edited directly from the keyboard. A selection in such an attribute value cannot be extended outside the attribute.

It is also possible to use the Keyboard for selecting by structure in any view. Pressing the Esc (F2 on Windows) key selects the parent element in the document structure. Pressing the Esc (F2 on Windows) key several times allows you to select containers (and everything in them) up the structure the structure towards the root. It is also possible to select child elements: the default shortcut key is Control-minus ("-"). To select the next or previous element at the same level (or at the level of the parent element if there is no next/previous child of the current level) use Control-k (for next) and Control-j (for previous).

### Selecting images

If you click on the left hand part of an image, the insertion point is moved to the left edge of that image. This allows you to type text before the image. If you click on the right hand part of an image, the insertion point is moved to the right side of that image. This allows you to type text after the image.

When using the arrow keys to move, the cursor will move from one side of the image to the image itself (selecting it)and then to the other side

If you want to select the whole image, click anywhere within the image and move a bit with the button pressed down. Do not leave the image before releasing the button. The whole image is then selected. You can use the copy, cut and paste commands to move or duplicate the image element along with all its attributes.