Updated navigation accelerators, fixing ICS problems.
authorEric Mullins <emwine@earthlink.net>
Fri, 9 Oct 2009 06:04:51 +0000 (00:04 -0600)
committerEric Mullins <emwine@earthlink.net>
Fri, 9 Oct 2009 06:04:51 +0000 (00:04 -0600)
Recent changes to the navigation accelerators were in the wrong
accelerator table.  Since the goal was to correct non-JAWS versions
back to 4.2.7 behavior, I updated it to how 4.2.7 did it, but still
retained the #ifdef JAWS conditional compilation.

On an ICS, the navigation keys took control away from the ics
client to navigate the game.  The update requires the ALT key to
be pressed, but it works identical to 4.2.7, not causing an
unexpected focus back to the board window when you're just editing
text.

winboard/winboard.rc

index b3d74f3..08c7b91 100644 (file)
@@ -1413,12 +1413,6 @@ BEGIN
     VK_PRIOR,       IDM_LoadPrevPosition,   VIRTKEY, SHIFT, ALT, NOINVERT\r
     VK_LEFT,        IDM_Backward,           VIRTKEY, ALT, NOINVERT\r
     VK_RIGHT,       IDM_Forward,            VIRTKEY, ALT, NOINVERT\r
-#ifndef JAWS\r
-    VK_LEFT,        IDM_Backward,           VIRTKEY, NOINVERT\r
-    VK_RIGHT,       IDM_Forward,            VIRTKEY, NOINVERT\r
-    VK_DOWN,        IDM_ToEnd,              VIRTKEY, NOINVERT\r
-    VK_DOWN,        IDM_ToStart,            VIRTKEY, NOINVERT\r
-#endif\r
 END\r
 \r
 NO_ALT ACCELERATORS MOVEABLE PURE \r
@@ -1431,6 +1425,12 @@ BEGIN
     VK_NEXT,        IDM_LoadNextPosition,   VIRTKEY, SHIFT, NOINVERT\r
     VK_PRIOR,       IDM_LoadPrevGame,       VIRTKEY, NOINVERT\r
     VK_PRIOR,       IDM_LoadPrevPosition,   VIRTKEY, SHIFT, NOINVERT\r
+#ifndef JAWS\r
+    VK_LEFT,        IDM_Backward,           VIRTKEY, NOINVERT\r
+    VK_RIGHT,       IDM_Forward,            VIRTKEY, NOINVERT\r
+    VK_DOWN,        IDM_ToEnd,              VIRTKEY, NOINVERT\r
+    VK_UP,          IDM_ToStart,            VIRTKEY, NOINVERT\r
+#endif\r
 END\r
 \r
 NO_ICS ACCELERATORS DISCARDABLE \r