From 564d40aef12b1927f48cf1561ec3199462f8e583 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 3 Jan 2011 12:50:54 +0100 Subject: [PATCH] Fix spurious reading of old game title by JAWS Because focus was switched to the board window before loading the selected game from the game list, the titlebar still contained the name of the previously loaded game, which would spontaneously be read by JAWS. Now the focus switch is done after loading the new game (which updates the window title.) --- winboard/wgamelist.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/winboard/wgamelist.c b/winboard/wgamelist.c index e13bcf0..2300fda 100644 --- a/winboard/wgamelist.c +++ b/winboard/wgamelist.c @@ -359,8 +359,8 @@ GameListDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) CmailLoadGame(gameFile, nItem + 1, gameFileName, TRUE); } else { - SetFocus(hwndMain); // [HGM] automatic focus switch LoadGame(gameFile, nItem + 1, gameFileName, TRUE); + SetFocus(hwndMain); // [HGM] automatic focus switch } } -- 1.7.0.4