X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=manual%2Fhtml_node%2FKeys.html;h=1c31e9d6de429a9c2677b52e8349c9c1dc86d20c;hb=a36b2aca1054f083cd50958eff7e347e8aa6bfc5;hp=289c5e7e536635c5a206bb2841e4452144c95b12;hpb=2a90bf5372bfdc59dd7c88d061d0ef841d69f063;p=xboard.git diff --git a/manual/html_node/Keys.html b/manual/html_node/Keys.html index 289c5e7..1c31e9d 100644 --- a/manual/html_node/Keys.html +++ b/manual/html_node/Keys.html @@ -32,57 +32,42 @@ Up: Menus

3.9 Other Shortcut Keys

-

+

-
Show Last Move
By hitting Enter the last move will be re-animated. -
Load Next Game
Loads the next game from the last game record file you loaded. +
Show Last Move
By hitting Enter the last move will be re-animated. +
Load Next Game
Loads the next game from the last game record file you loaded. The Alt+PgDn key triggers this action. -
Load Previous Game
Loads the previous game from the last game record file you +
Load Previous Game
Loads the previous game from the last game record file you loaded. The Alt+PgUp key triggers this action. Not available if the last game was loaded from a pipe. -
Reload Same Game
Reloads the last game you loaded. +
Reload Same Game
Reloads the last game you loaded. Not available if the last game was loaded from a pipe. Currently no keystroke is assigned to this ReloadGameProc. -
Reload Same Position
Reloads the last position you loaded. +
Reload Same Position
Reloads the last position you loaded. Not available if the last position was loaded from a pipe. Currently no keystroke is assigned to this ReloadPositionProc.
-

You can add or remove shortcut keys using the X resources -form.translations. Here is an example of what would go in your -.Xresources file: +

In the Xaw build of XBoard you can add or remove shortcut keys +using the X resources paneA.translations. +Here is an example of what could go into your +.Xdefaults file: -

     XBoard*form.translations: \
-       Shift<Key>?: AboutGameProc() \n\
-       <Key>y: AcceptProc() \n\
-       <Key>n: DeclineProc() \n\
-       <Key>i: NothingProc()
+
     XBoard*paneA.translations: \
+       Shift<Key>?: MenuItem(Help.About) \n\
+       Ctrl<Key>y: MenuItem(Action.Accept) \n\
+       Ctrl<Key>n: MenuItem(Action.Decline) \n\
+       Ctrl<Key>i: MenuItem(Nothing)
 
-

Binding a key to NothingProc makes it do nothing, thus removing -it as a shortcut key. The XBoard commands that can be bound to keys +

So the key should always be bound to the action 'MenuItem', +with the (hierarchical) name of the menu item as argument. +There are a few actions available for which no menu item exists: +Binding a key to Nothing makes it do nothing, thus removing +it as a shortcut key. Other such functions that can be bound to keys are: -

     AbortProc, AboutGameProc, AboutProc, AcceptProc, AdjournProc,
-     AlwaysQueenProc, AnalysisModeProc, AnalyzeFileProc,
-     AnimateDraggingProc, AnimateMovingProc, AutobsProc, AutoflagProc,
-     AutoflipProc, AutoraiseProc, AutosaveProc, BackwardProc,
-     BlindfoldProc, BookProc, CallFlagProc, CopyGameProc, CopyPositionProc,
-     DebugProc, DeclineProc, DrawProc, EditCommentProc, EditGameProc,
-     EditPositionProc, EditTagsProc, EnterKeyProc, FlashMovesProc,
-     FlipViewProc, ForwardProc, GetMoveListProc, HighlightLastMoveProc,
-     HintProc, IcsAlarmProc, IcsClientProc, IcsInputBoxProc,
-     InfoProc, LoadGameProc, LoadNextGameProc, LoadNextPositionProc,
-     LoadPositionProc, LoadPrevGameProc, LoadPrevPositionProc,
-     LoadSelectedProc, MachineBlackProc, MachineWhiteProc, MailMoveProc,
-     ManProc, MoveNowProc, MoveSoundProc, NothingProc, OldSaveStyleProc,
-     PasteGameProc, PastePositionProc, PauseProc, PeriodicUpdatesProc,
-     PonderNextMoveProc, PopupExitMessageProc, PopupMoveErrorsProc,
-     PremoveProc, QuietPlayProc, QuitProc, ReloadCmailMsgProc,
-     ReloadGameProc, ReloadPositionProc, RematchProc, ResetProc,
-     ResignProc, RetractMoveProc, RevertProc, SaveGameProc,
-     SavePositionProc, ShowCoordsProc, ShowGameListProc, ShowThinkingProc,
-     StopExaminingProc, StopObservingProc, TestLegalityProc, ToEndProc,
-     ToStartProc, TrainingProc, TruncateGameProc, and TwoMachinesProc.
+
     AboutGame, DebugProc (switches the -debug option on or off),
+     LoadNextGame, LoadPrevGame, ReloadGame, ReloadPosition.