X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.texi;h=1c5fd43a2e8a650cefc0b4822a2414e77f3ec96d;hb=fd3578a52b60d0b056a0f39861fa7e996c2cd5be;hp=3e4e002f898139f2da40f0105ad92b4f6aa41730;hpb=189b48237361df4f482800f6e17a52f11595c08a;p=xboard.git 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