updated manual
[xboard.git] / manual / html_node / Keys.html
1 <html lang="en">
2 <head>
3 <title>Keys - XBoard</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="XBoard">
6 <meta name="generator" content="makeinfo 4.13">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="Menus.html#Menus" title="Menus">
9 <link rel="prev" href="Help-Menu.html#Help-Menu" title="Help Menu">
10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11 <meta http-equiv="Content-Style-Type" content="text/css">
12 <style type="text/css"><!--
13   pre.display { font-family:inherit }
14   pre.format  { font-family:inherit }
15   pre.smalldisplay { font-family:inherit; font-size:smaller }
16   pre.smallformat  { font-family:inherit; font-size:smaller }
17   pre.smallexample { font-size:smaller }
18   pre.smalllisp    { font-size:smaller }
19   span.sc    { font-variant:small-caps }
20   span.roman { font-family:serif; font-weight:normal; } 
21   span.sansserif { font-family:sans-serif; font-weight:normal; } 
22 --></style>
23 </head>
24 <body>
25 <div class="node">
26 <a name="Keys"></a>
27 <p>
28 Previous:&nbsp;<a rel="previous" accesskey="p" href="Help-Menu.html#Help-Menu">Help Menu</a>,
29 Up:&nbsp;<a rel="up" accesskey="u" href="Menus.html#Menus">Menus</a>
30 <hr>
31 </div>
32
33 <h3 class="section">3.9 Other Shortcut Keys</h3>
34
35 <p><a name="index-Keys-187"></a><a name="index-Shortcut-keys-188"></a>
36      <dl>
37 <dt>Show Last Move<dd><a name="index-Show-Last-Move_002c-Shortcut-Key-189"></a>By hitting <kbd>Enter</kbd> the last move will be re-animated. 
38 <br><dt>Load Next Game<dd><a name="index-Load-Next-Game_002c-Menu-Item-190"></a>Loads the next game from the last game record file you loaded. 
39 The <kbd>Alt+PgDn</kbd> key triggers this action. 
40 <br><dt>Load Previous Game<dd><a name="index-Load-Previous-Game_002c-Menu-Item-191"></a>Loads the previous game from the last game record file you
41 loaded.  The <kbd>Alt+PgUp</kbd> key triggers this action. 
42 Not available if the last game was loaded from a pipe. 
43 <br><dt>Reload Same Game<dd><a name="index-Reload-Same-Game_002c-Menu-Item-192"></a>Reloads the last game you loaded. 
44 Not available if the last game was loaded from a pipe. 
45 Currently no keystroke is assigned to this ReloadGameProc. 
46 <br><dt>Reload Same Position<dd><a name="index-Reload-Same-Position_002c-Menu-Item-193"></a>Reloads the last position you loaded. 
47 Not available if the last position was loaded from a pipe. 
48 Currently no keystroke is assigned to this ReloadPositionProc. 
49 </dl>
50
51    <p>In the Xaw build of XBoard you can add or remove shortcut keys
52 using the X resources <code>paneA.translations</code>. 
53 Here is an example of what could go into your
54 <samp><span class="file">.Xdefaults</span></samp> file:
55
56 <pre class="example">     XBoard*paneA.translations: \
57        Shift&lt;Key&gt;?: MenuItem(Help.About) \n\
58        Ctrl&lt;Key&gt;y: MenuItem(Action.Accept) \n\
59        Ctrl&lt;Key&gt;n: MenuItem(Action.Decline) \n\
60        Ctrl&lt;Key&gt;i: MenuItem(Nothing)
61 </pre>
62    <p class="noindent">So the key should always be bound to the action 'MenuItem',
63 with the (hierarchical) name of the menu item as argument. 
64 There are a few actions available for which no menu item exists:
65 Binding a key to <code>Nothing</code> makes it do nothing, thus removing
66 it as a shortcut key. Other such functions that can be bound to keys
67 are:
68
69 <pre class="example">     AboutGame, DebugProc (switches the -debug option on or off),
70      LoadNextGame, LoadPrevGame, ReloadGame, ReloadPosition.
71 </pre>
72    </body></html>
73