From fd3578a52b60d0b056a0f39861fa7e996c2cd5be Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 6 Sep 2014 22:20:19 +0200 Subject: [PATCH] Rewrite key-binding section of manual This section still wrongly described the key-binding procedure from before the rewrite of the XBoard front-end. --- xboard.texi | 43 ++++++++++++++----------------------------- 1 files changed, 14 insertions(+), 29 deletions(-) diff --git a/xboard.texi b/xboard.texi index 3e4e002..1c5fd43 100644 --- a/xboard.texi +++ b/xboard.texi @@ -1759,44 +1759,29 @@ Not available if the last position was loaded from a pipe. Currently no keystroke is assigned to this ReloadPositionProc. @end table -You can add or remove shortcut keys using the X resources -@code{form.translations}. Here is an example of what would go in your +In the Xaw build of XBoard you can add or remove shortcut keys +using the X resources @code{form.translations}. +Here is an example of what would go in your @file{.Xresources} file: @example XBoard*form.translations: \ - Shift?: AboutGameProc() \n\ - y: AcceptProc() \n\ - n: DeclineProc() \n\ - i: NothingProc() + Shift?: MenuItem(Help.About) \n\ + Ctrly: MenuItem(Action.Accept) \n\ + Ctrln: MenuItem(Action.Decline) \n\ + Ctrli: MenuItem(Nothing) @end example @noindent -Binding a key to @code{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 @code{Nothing} makes it do nothing, thus removing +it as a shortcut key. Other such functions that can be bound to keys are: @example -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. @end example @node Options -- 1.7.0.4