29b6813c4480e878b1383e9b8e4ac0121d70b2a3
[jalview.git] / help / help / html / keys.html
1 <html>
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
4  * Copyright (C) $$Year-Rel$$ The Jalview Authors
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *  
13  * Jalview is distributed in the hope that it will be useful, but 
14  * WITHOUT ANY WARRANTY; without even the implied warranty 
15  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
16  * PURPOSE.  See the GNU General Public License for more details.
17  * 
18  * You should have received a copy of the GNU General Public License
19  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
20  * The Jalview Authors are detailed in the 'AUTHORS' file.
21  -->
22 <head>
23 <title>Key Strokes</title>
24 </head>
25 <body>
26   <p>
27     <strong>Key Strokes</strong>
28   </p>
29   <p>
30     Jalview has two distinct modes of keyboard operation - in 'Normal'
31     mode, single keystrokes (including those shown next to menu items)
32     provide short cuts to common commands. In <a
33       href="features/cursorMode.html">'Cursor'</a> mode (enabled by
34     <em>F2</em>), some of these are disabled and more complex 'Compound
35     Keystrokes' can be entered to perform precise navigation, selection
36     and editing operations.
37   </p>
38   <table border="1">
39     <tr>
40       <td><strong>Key</strong></td>
41       <td><strong>Which Mode</strong></td>
42       <td><strong>Action</strong></td>
43     </tr>
44     <!--<tr>
45 <td><strong>Escape</strong></td><td>Both</td>
46 <td>The Panic button.</td></tr>
47 <tr> -->
48     <tr>
49       <td><strong> Escape</strong></td>
50       <td>Normal</td>
51       <td>Clears the current selection region, highlighted columns
52         and highlghted residues.</td>
53     </tr>
54     <tr>
55       <td><strong>Escape</strong></td>
56       <td>Cursor</td>
57       <td>As in normal mode, but also cancels any partially entered
58         commands</td>
59     </tr>
60     <tr>
61       <td><strong><em>F1</em></strong></td>
62       <td>Both</td>
63       <td>Show Help Documentation</td>
64     </tr>
65     <tr>
66       <td><strong><em>F2</em></strong></td>
67       <td></td>
68       <td>Toggle Cursor mode on / off</td>
69     </tr>
70     <tr>
71       <td><strong>Control 'Z'</strong></td>
72       <td>Both</td>
73       <td>Undoes the last sequence edit</td>
74     </tr>
75     <tr>
76       <td><strong>Control 'Y'</strong></td>
77       <td>Both</td>
78       <td>Redo the last sequence edit undone.</td>
79     </tr>
80     <tr>
81       <td><strong>Cursor Keys<br> (Arrow Keys)
82       </strong></td>
83       <td>Cursor</td>
84       <td>Move cursor around alignment</td>
85     </tr>
86     <tr>
87       <td><strong>Cursor Keys<br> (Arrow Keys)
88       </strong></td>
89       <td>Normal<br />
90       <em>(+Alt in Cursor)</em></td>
91       <td>Moves selected sequence(s) up, down, left, or right
92         according to the direction pressed.<br>
93       <br>
94       <em>Alt+Arrow key to move selection or sequence under cursor
95           in cursor mode.</em>
96       </td>
97     </tr>
98     <tr>
99       <td><strong>Page Up</strong></td>
100       <td>Both</td>
101       <td>Scroll up the alignment view</td>
102     </tr>
103     <tr>
104       <td><strong>Page Down</strong></td>
105       <td>Both</td>
106       <td>Scroll down the alignment view</td>
107     </tr>
108     <tr>
109       <td><strong>Control 'A'</strong></td>
110       <td>Both</td>
111       <td>Selects all sequences in the alignment</td>
112     </tr>
113     <tr>
114       <td><strong>Control 'I'</strong></td>
115       <td>Both</td>
116       <td>Invert sequence selection.</td>
117     </tr>
118     <tr>
119       <td><strong>Control Alt 'I'</strong></td>
120       <td>Both</td>
121       <td>Invert column selection.</td>
122     </tr>
123     <tr>
124       <td><strong>Control 'C'</strong></td>
125       <td>Both</td>
126       <td>Copies the selected region into the clipboard as a Fasta
127         format file<br> <em>nb. not available in applet, as no
128           clipboard is available</em>
129       </td>
130     </tr>
131     <tr>
132       <td><strong>Control 'V'</strong></td>
133       <td>Both</td>
134       <td>Paste the contents of the clipboard to the current
135         alignment window. (Alignment Window->Edit->Paste->Add to this
136         Alignment)<br> <em>nb. if the paste is from a Jalview
137           alignment, any sequence and alignment annotations will also be
138           copied over.</em>
139       </td>
140     </tr>
141     <tr>
142       <td><strong>Control Shift 'V'</strong></td>
143       <td>Both</td>
144       <td>Paste the contents of the clipboard to a new alignment
145         window. (Alignment Window->Edit->Paste->To New Alignment)</td>
146     </tr>
147     <tr>
148       <td><strong>Control 'X'</strong></td>
149       <td>Both</td>
150       <td>Cuts the (fully) selected sequences from the alignment. <!-- not yet in this version 
151 This will not happen if only some
152 columns are selected, you should use the <a href="features/hiddenRegions.html">Hide Regions feature</a> instead.-->
153       </td>
154     </tr>
155     <tr>
156       <td><strong>Control 'F'</strong></td>
157       <td>Both</td>
158       <td>Launches the search window</td>
159     </tr>
160     <tr><td><strong>B</strong></td>
161       <td>Both</td>
162       <td>Add highlighted columns to current column selection</td>
163     </tr>
164     <tr><td><strong>Alt 'B'</strong></td>
165       <td>Both</td>
166       <td>Add all but the currently highlighted columns to current selection</td>
167     </tr>
168     <tr><td><strong>Control 'B'</strong></td>
169       <td>Both</td>
170       <td>Toggle the column selection marks for the currently highlighted 
171           columns (or all others if Alt is also pressed)</td>
172     </tr>
173     <tr>
174       <td><strong>H</strong></td>
175       <td>Both</td>
176       <td>Hides / Reveals selected columns and sequences</td>
177     </tr>
178     <tr>
179       <td><strong>Control 'H'</strong></td>
180       <td>Both</td>
181       <td>Hides / Reveals selected columns</td>
182     </tr>
183     <tr>
184       <td><strong>Shift 'H'</strong></td>
185       <td>Both</td>
186       <td>Hides / Reveals selected sequences</td>
187     </tr>
188     <tr>
189       <td><strong>Control + Shift 'H'</strong></td>
190       <td>Both</td>
191       <td>Hides everything but the current selection</td>
192     </tr>
193     <tr>
194       <td><strong>Control 'O'</strong></td>
195       <td>Both</td>
196       <td>Input new alignment from file</td>
197     </tr>
198     <tr>
199       <td><strong>Control 'S'</strong></td>
200       <td>Both</td>
201       <td>Save alignment with current filename and format</td>
202     </tr>
203     <tr>
204       <td><strong>Control Shift 'S'</strong></td>
205       <td>Both</td>
206       <td>Save alignment as a new file or with a different format</td>
207     </tr>
208     <tr>
209       <td><strong>Control 'P'</strong></td>
210       <td>Both</td>
211       <td>Opens the print dialog box to print the current view</td>
212     </tr>
213     <tr>
214       <td><strong>Control 'W'</strong></td>
215       <td>Both</td>
216       <td>Closes the current view or the current alignment</td>
217     </tr>
218     <tr>
219       <td><strong>Backspace</strong></td>
220       <td>Normal</td>
221       <td>Delete the currently selected rows or columns from the
222         alignment.</td>
223     </tr>
224     <tr>
225       <td><strong>Control 'L'</strong></td>
226       <td>Left</td>
227       <td>Remove columns to left of left-most column marker.</td>
228     </tr>
229     <tr>
230       <td><strong>Control 'R'</strong></td>
231       <td>Both</td>
232       <td>Remove columns to right of right-most column marker.</td>
233     </tr>
234     <tr>
235       <td><strong>Control 'E'</strong></td>
236       <td>Both</td>
237       <td>Remove gapped columns</td>
238     </tr>
239     <tr>
240       <td><strong>Control Shift 'E'</strong></td>
241       <td>Both</td>
242       <td>Remove all gaps</td>
243     </tr>
244     <tr>
245       <td><strong>Control 'D'</strong></td>
246       <td>Both</td>
247       <td>Open the 'Remove redundancy' Dialog box.</td>
248     </tr>
249     <tr>
250       <td><strong></strong></td>
251       <td>Normal</td>
252       <td></td>
253     </tr>
254   </table>
255   <p>The compound commands available in the Cursor mode are
256     summarised below. Single letter commands can be prefixed by digits
257     to specify a repetition number, and some more complex commands take
258     one or more numeric parameters (prefixing the command key and
259     separated by commas).</p>
260   <table border=1>
261     <tr>
262       <td><strong>Compound Command</strong></td>
263       <td>Mode</td>
264       <td>Action (and parameter description)</td>
265     </tr>
266     <tr>
267       <td><strong>0-9</strong></td>
268       <td>Cursor</td>
269       <td>Begin entering a numeric parameter (<strong><em>p</em></strong>)
270         or repetition number for a cursor movement or edit command.
271       </td>
272     </tr>
273     <tr>
274       <td><strong>,</strong></td>
275       <td>Cursor</td>
276       <td>Separates one or more numeric parameters (<em>e.g. <strong>p1</strong>,<strong>p2</strong></em>)
277         for a command.
278       </td>
279     </tr>
280     <tr>
281       <td><strong><strong><em>p1</em></strong>,<strong><em>p2</em></strong><br>Return</strong></td>
282       <td>Cursor</td>
283       <td>Move cursor to a particular column (<strong><em>p1</em></strong>)
284         and row (<strong><em>p2</em></strong>) in the alignment.<br>
285         <em>e.g. '5,6&lt;Return&gt;' moves the cursor to the 5th
286           column in the 6th sequence.</em></td>
287     </tr>
288     <tr>
289       <td><strong><em>p</em>S</strong></td>
290       <td>Cursor</td>
291       <td>Jump to the <strong><em>p</em></strong>'th sequence in
292         the alignment.
293       </td>
294     </tr>
295     <tr>
296       <td><strong><em>p</em>P</strong></td>
297       <td>Cursor</td>
298       <td>Jump to <em><strong>p</strong></em>'th amino acid in
299         current sequence.
300       </td>
301     </tr>
302     <tr>
303       <td><strong><em>p</em>C</strong></td>
304       <td>Cursor</td>
305       <td>Jump to <em><strong>p</strong></em>'th column in the
306         alignment.
307       </td>
308     </tr>
309     <tr>
310       <td><strong>Q</strong></td>
311       <td>Cursor</td>
312       <td>Marks the top left corner of the selection area</td>
313     </tr>
314     <tr>
315       <td><strong>M</strong></td>
316       <td>Cursor</td>
317       <td>Marks the bottom right corner of the selection area</td>
318     </tr>
319     <tr>
320       <td><strong><em>[p]</em><br>Space</strong></td>
321       <td>Cursor</td>
322       <td>Inserts one (or optionally <strong><em>p</em></strong>)
323         gaps at the current position.<br> <em>Hold down
324           Control or Shift to insert gaps over a sequence group</em></td>
325     </tr>
326     <tr>
327       <td><strong><em>[p]</em><br>Delete<br></strong></td>
328       <td>Cursor</td>
329       <td>Removes one (or optionally <strong><em>p</em></strong>)
330         gaps at the cursor position.<br> <em>Hold down Control
331           or Shift to insert gaps over a sequence group</em></td>
332     </tr>
333     <tr>
334       <td><strong><em>[p]</em><br>Backspace<br></strong></td>
335       <td>Cursor</td>
336       <td>Removes one (or optionally <strong><em>p</em></strong>)
337         gaps at the cursor position.<br> <em>Hold down Control
338           or Shift to insert gaps over a sequence group</em></td>
339     </tr>
340   </table>
341   <p>&nbsp;</p>
342   <p>&nbsp;</p>
343 </body>
344 </html>