From: H.G. Muller Date: Wed, 28 Dec 2011 21:03:30 +0000 (+0100) Subject: Use in stead of Ctrl+. for peeking last move X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=1f6c2b6c28429b44a063c92434035d803c1d6be5 Use in stead of Ctrl+. for peeking last move I commented out the explicit detection of the Ctrl key, as this is not needed when there are no 'unnatural' Ctrl keystrokes used for binding. --- diff --git a/xboard.c b/xboard.c index 9b5e5a1..7e2443c 100644 --- a/xboard.c +++ b/xboard.c @@ -1115,8 +1115,8 @@ char globalTranslations[] = "\ :F1: ManProc() \n \ :F2: FlipViewProc() \n \ - :Ctrl.: TempBackwardProc() \n \ - :Ctrl.: TempForwardProc() \n \ + :Return: TempBackwardProc() \n \ + :Return: TempForwardProc() \n \ :Ctrl1: AskQuestionProc(\"Direct command\",\ \"Send to chess program:\",,1) \n \ :Ctrl2: AskQuestionProc(\"Direct command\",\ diff --git a/xboard.texi b/xboard.texi index 1bf613c..3085f14 100644 --- a/xboard.texi +++ b/xboard.texi @@ -1583,7 +1583,7 @@ Shows the current XBoard version number. @cindex Shortcut keys @table @asis @item Show last move -By hitting @kbd{Ctrl+.} the last move will be re-animated. +By hitting @kbd{Enter} the last move will be re-animated. @item Send a command directly to the chess engine Using @kbd{Ctrl+1} a popup window will prompt you for a command that will be send directly to the first chess engines. @kbd{Ctrl+2} does the diff --git a/xoptions.c b/xoptions.c index e823a39..00ac44c 100644 --- a/xoptions.c +++ b/xoptions.c @@ -1604,16 +1604,16 @@ void MoveTypeInProc(Widget widget, caddr_t unused, XEvent *event) { char buf[10], keys[32]; KeySym sym; - KeyCode metaL, metaR, ctrlL, ctrlR; + KeyCode metaL, metaR; //, ctrlL, ctrlR; int n = XLookupString(&(event->xkey), buf, 10, &sym, NULL); XQueryKeymap(xDisplay,keys); metaL = XKeysymToKeycode(xDisplay, XK_Meta_L); metaR = XKeysymToKeycode(xDisplay, XK_Meta_R); - ctrlL = XKeysymToKeycode(xDisplay, XK_Control_L); - ctrlR = XKeysymToKeycode(xDisplay, XK_Control_R); +// ctrlL = XKeysymToKeycode(xDisplay, XK_Control_L); +// ctrlR = XKeysymToKeycode(xDisplay, XK_Control_R); if ( n == 1 && *buf >= 32 // printable && !(keys[metaL>>3]&1<<(metaL&7)) && !(keys[metaR>>3]&1<<(metaR&7)) // no alt key pressed - && !(keys[ctrlL>>3]&1<<(ctrlL&7)) && !(keys[ctrlR>>3]&1<<(ctrlR&7)) // no ctrl key pressed +// && !(keys[ctrlL>>3]&1<<(ctrlL&7)) && !(keys[ctrlR>>3]&1<<(ctrlR&7)) // no ctrl key pressed ) { if(appData.icsActive) { // text typed to board in ICS mode: divert to ICS input box