public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-8-g21dde03
@ 2016-08-02 18:49 corinna
  0 siblings, 0 replies; only message in thread
From: corinna @ 2016-08-02 18:49 UTC (permalink / raw)
  To: cygwin-apps-cvs




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=21dde03ddc5d9946841cb98d0b83bcbb22e3d52e

commit 21dde03ddc5d9946841cb98d0b83bcbb22e3d52e
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Aug 2 20:48:53 2016 +0200

    Chooser window: Set focus to search field.
    
    After rearranging the chooser controls in commit 6a36f6a,
    the search field wasn't the first control anymore, thus it
    didn;'t have the focus anymore.  Fix that by setting the focus
    to the search field explicitely in ChooserPage::OnInit.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>


Diff:
---
 choose.cc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/choose.cc b/choose.cc
index 106ac81..1c97f59 100644
--- a/choose.cc
+++ b/choose.cc
@@ -291,6 +291,10 @@ ChooserPage::OnInit ()
   AddTooltip (IDC_CHOOSE_VIEW, IDS_VIEWBUTTON_TOOLTIP);
   AddTooltip (IDC_CHOOSE_HIDE, IDS_HIDEOBS_TOOLTIP);
   AddTooltip (IDC_CHOOSE_SEARCH_EDIT, IDS_SEARCH_TOOLTIP);
+
+  /* Set focus to search edittext control. */
+  PostMessage (GetHWND (), WM_NEXTDLGCTL,
+	       (WPARAM) GetDlgItem (IDC_CHOOSE_SEARCH_EDIT), TRUE);
 }
 
 void


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-02 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02 18:49 [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-8-g21dde03 corinna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).