X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=manual%2Fhtml_node%2FKeys.html;h=1c31e9d6de429a9c2677b52e8349c9c1dc86d20c;hb=a36b2aca1054f083cd50958eff7e347e8aa6bfc5;hp=ab61bb6705f7b2c274e8fdaab93f1b2d1fe9f602;hpb=6ef5a4594dc90cfd66cc24f806241eaaaa2eebe6;p=xboard.git diff --git a/manual/html_node/Keys.html b/manual/html_node/Keys.html index ab61bb6..1c31e9d 100644 --- a/manual/html_node/Keys.html +++ b/manual/html_node/Keys.html @@ -3,7 +3,7 @@
form.translations
. Here is an example of what would go in your
-.Xresources file:
-
-XBoard*form.translations: \ - Shift<Key>?: AboutGameProc() \n\ - <Key>y: AcceptProc() \n\ - <Key>n: DeclineProc() \n\ - <Key>i: NothingProc() --
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
-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, Iconify, 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. + +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*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)-+
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: +AboutGame, DebugProc (switches the -debug option on or off), + LoadNextGame, LoadPrevGame, ReloadGame, ReloadPosition. +