<page xmlns="http://projectmallard.org/1.0/"
      xmlns:ui="http://projectmallard.org/ui/1.0"
      type="task"
      id="adv-keyboard-shortcuts">

  <info>
    <revision version="0.1" date="2013-02-17" status="candidate"/>
    <link type="guide" xref="index#advanced"/>
    <link type="guide" xref="pref"/>
    <link type="seealso" xref="pref-keyboard-access" />

    <credit type="author copyright">
      <name>Sindhu S</name>
      <email>sindhus@live.in</email>
      <years>2013</years>
    </credit>
    <credit type="author copyright editor">
      <name>Ekaterina Gerasimova</name>
      <email>kittykat3756@gmail.com</email>
      <years>2013</years>
    </credit>
    <credit type="copyright editor">
      <name>Michael Hill</name>
      <email>mdhillca@gmail.com</email>
      <years>2013</years>
    </credit>

    <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>

    <desc>View and edit keyboard shortcuts.</desc>
  </info>

  <title>Keyboard shortcuts</title>

  <p>Keyboard shortcuts are combinations of keys that allow you to perform
  actions, such as opening the settings dialog or accessing a feature inside
  <app>Terminal</app> quickly. These shortcuts can be modified to suit your
  preferences.</p>

  <p>To change a keyboard shortcut:</p>
  <steps>
    <item>
      <p>Select <guiseq><gui style="menu">Edit</gui>
      <gui style="menuitem">Preferences</gui>
      <gui style="tab">Shortcuts</gui></guiseq>.</p>
    </item>
    <item>
      <p>Select the shortcut that you wish to edit by clicking on it.</p>
    </item>
    <item>
      <p>Once the shortcut is selected, click on the shortcut key combination
      to edit it.</p>
    </item>
    <item>
      <p>Press your desired shortcut key combination as you would enter it to
      use it. The keys that you can use include <key>Alt</key>,
      <key>Alt Gr</key>, <key>Ctrl</key>, <key>Shift</key>, number and letter
      keys.</p>
      <note>
        <p>Mnemonic key combinations, such as <keyseq><key>Alt</key>
        <key>F</key></keyseq> will not work.</p>
      </note>
    </item>
    <item>
      <p>Once you have entered your new shortcut, it will automatically be
      saved and you should see it in the list next to the corresponding
      action.</p>
    </item>
  </steps>

  <note style="tip">
    <p>To disable a shortcut, edit it and press the <key>Backspace</key>
    instead of the new shortcut.</p>
  </note>

  <section id="file-shortcuts">
    <title><gui style="menu">File</gui> shortcuts</title>

    <p>The default shortcuts for options under <gui style="menu">File</gui>
    menu are:</p>

    <table rules="rows" frame="top bottom" ui:expanded="true">
      <thead>
        <tr>
          <td><p>Action</p></td>
          <td><p>Keyboard Shortcut</p></td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><p>New Tab</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>T</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>New Window</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>N</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Close Tab</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>W</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Close Window</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>Q</key></keyseq></p></td>
        </tr>
      </tbody>
    </table>
  </section>

  <section id="edit-shortcuts">
    <title><gui style="menu">Edit</gui> shortcuts</title>

    <p>The default shortcuts for options under <gui style="menu">Edit</gui>
    menu are:</p>

    <table rules="rows" frame="top bottom" ui:expanded="false">
      <thead>
        <tr>
          <td><p>Action</p></td>
          <td><p>Keyboard Shortcut</p></td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><p>Copy</p></td>
          <td><p><keyseq><key>Ctrl</key><key>Shift</key><key>C</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Paste</p></td>
          <td><p><keyseq><key>Ctrl</key><key>Shift</key><key>V</key></keyseq></p></td>
        </tr>
      </tbody>
    </table>
  </section>

  <section id="view-shortcuts">
    <title><gui style="menu">View</gui> shortcuts</title>

    <p>The default shortcuts for options in the <gui style="menu">View</gui>
    menu are:</p>

    <table rules="rows" frame="top bottom" ui:expanded="false">
      <thead>
        <tr>
          <td><p>Action</p></td>
          <td><p>Keyboard Shortcut</p></td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><p>Full Screen</p></td>
          <td><p><key>F11</key></p></td>
        </tr>
        <tr>
          <td><p>Zoom In</p></td>
          <td><p><keyseq><key>Ctrl</key><key>+</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Zoom Out</p></td>
          <td><p><keyseq><key>Ctrl</key><key>-</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Normal Size</p></td>
          <td><p><keyseq><key>Ctrl</key><key>0</key></keyseq></p></td>
        </tr>
      </tbody>
    </table>
  </section>

  <section id="tab-shortcuts">
    <title>Tab shortcuts</title>

    <p>The default shortcuts for working with tabs are:</p>

    <table rules="rows" frame="top bottom" ui:expanded="false">
      <thead>
        <tr>
          <td><p>Action</p></td>
          <td><p>Keyboard Shortcut</p></td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><p>Switch to Previous Tab</p></td>
          <td><p><keyseq><key>Ctrl</key><key>Page Up</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Next Tab</p></td>
          <td><p><keyseq><key>Ctrl</key><key>Page Down</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Move Tab to the Left</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>Page Up</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Move Tab to the Right</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>Page Down</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 1</p></td>
          <td><p><keyseq><key>Alt</key><key>1</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 2</p></td>
          <td><p><keyseq><key>Alt</key><key>2</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 3</p></td>
          <td><p><keyseq><key>Alt</key><key>3</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 4</p></td>
          <td><p><keyseq><key>Alt</key><key>4</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 5</p></td>
          <td><p><keyseq><key>Alt</key><key>5</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 6</p></td>
          <td><p><keyseq><key>Alt</key><key>6</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 7</p></td>
          <td><p><keyseq><key>Alt</key><key>7</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 8</p></td>
          <td><p><keyseq><key>Alt</key><key>8</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 9</p></td>
          <td><p><keyseq><key>Alt</key><key>9</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Switch to Tab 10</p></td>
          <td><p><keyseq><key>Alt</key><key>0</key></keyseq></p></td>
        </tr>
      </tbody>
    </table>
  </section>

  <section id="help-shortcuts">
    <title>Help shortcuts</title>

    <p>The default shortcuts for accessing items in the
    <gui style="menu">Help</gui> menu are:</p>

    <table rules="rows" frame="top bottom" ui:expanded="false">
      <thead>
        <tr>
          <td><p>Action</p></td>
          <td><p>Keyboard Shortcut</p></td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><p>Contents</p></td>
          <td><p><key>F1</key></p></td>
        </tr>
      </tbody>
    </table>
  </section>

  <section id="other-shortcuts">
    <title>Other</title>

    <p>There are also some shortcuts that cannot be edited:</p>

    <table rules="rows" frame="top bottom" ui:expanded="false">
      <thead>
        <tr>
          <td><p>Action</p></td>
          <td><p>Keyboard Shortcut</p></td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><p>Scroll up by one line</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>Up</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Scroll down by one line</p></td>
          <td><p><keyseq><key>Shift</key><key>Ctrl</key><key>Down</key></keyseq></p></td>
        </tr>
      </tbody>
    </table>
  </section>

  <section id="bash-shortcuts">
    <title>Bash shortcuts</title>

    <p>These are <app>Bash</app> shortcuts. <app>Bash</app> is usually the
    default shell.</p>

    <comment>
      <cite href="mailto:kittykat3756@gmail.com">Kat</cite>
      <p>TODO: move this section to a new page or link to info:readline
      instead.</p>
    </comment>
    <p><app>Bash</app> shell specific keyboard shortcuts are:</p>

    <table rules="rows" frame="top bottom" ui:expanded="false">
      <thead>
        <tr>
          <td><p>Action</p></td>
          <td><p>Keyboard shortcut</p></td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><p>Erase a word</p></td>
          <td><p><keyseq><key>Ctrl</key><key>W</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Erase a line</p></td>
          <td><p><keyseq><key>Ctrl</key><key>U</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Move to the start of the line</p></td>
          <td><p><keyseq><key>Ctrl</key><key>A</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Move to the end of the line</p></td>
          <td><p><keyseq><key>Ctrl</key><key>E</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Move back one character</p></td>
          <td><p><keyseq><key>Ctrl</key><key>B</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Move back one word</p></td>
          <td><p><keyseq><key>Alt</key><key>B</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Move forward one character</p></td>
          <td><p><keyseq><key>Ctrl</key><key>F</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Move forward one word</p></td>
          <td><p><keyseq><key>Alt</key><key>F</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Delete from the cursor to the beginning of the line.</p></td>
          <td><p><keyseq><key>Ctrl</key><key>u</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Delete from the cursor to the end of the line.</p></td>
          <td><p><keyseq><key>Ctrl</key><key>K</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Delete from the cursor to the start of the word.</p></td>
          <td><p><keyseq><key>Ctrl</key><key>W</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Delete previous word</p></td>
          <td><p><keyseq><key>Esc</key><key>Del</key></keyseq> or
          <keyseq><key>Esc</key><key>Backspace</key></keyseq></p></td>
        </tr>
        <tr>
          <td><p>Pastes text from the clipboard.</p></td>
          <td><p><keyseq><key>Ctrl</key><key>Y</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Clear the screen leaving the current line at the top of the
          screen.</p></td>
          <td><p><keyseq><key>Ctrl</key><key>L</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Reverse incremental search of history</p></td>
          <td><p><keyseq><key>Ctrl</key><key>R</key></keyseq></p></td> 
        </tr>
        <tr>
          <td><p>Reverse non-incremental search of history</p></td>
          <td><p><keyseq><key>Alt</key><key>P</key></keyseq></p></td> 
        </tr>
      </tbody>
    </table>
  </section>

</page>
