This is the mail archive of the cygwin-apps-cvs mailing list for the cygwin-apps project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-8-g21dde03




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]