| To: vim-dev@vim.org |
| Subject: patch 7.1.070 (extra) |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.1.070 (extra) |
| Problem: Win32 GUI: When using confirm() without a default button there |
| still is a default choice. |
| Solution: Set focus on something else than a button. (Chris Lubinski) |
| Files: src/gui_w32.c |
| |
| |
| |
| |
| |
| *** 2894,2899 **** |
| --- 2894,2903 ---- |
| (void)SetFocus(hwnd); |
| if (dialog_default_button > IDCANCEL) |
| (void)SetFocus(GetDlgItem(hwnd, dialog_default_button)); |
| + else |
| + /* We don't have a default, set focus on another element of the |
| + * dialog window, probably the icon */ |
| + (void)SetFocus(GetDlgItem(hwnd, DLG_NONBUTTON_CONTROL)); |
| return FALSE; |
| } |
| |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 70, |
| /**/ |
| |
| -- |
| You are not really successful until someone claims he sat |
| beside you in school. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |