public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [PATCH setup] Make Enter in the user URL box cause ADD instead of NEXT
@ 2017-12-04 15:59 Ken Brown
  2017-12-05 12:58 ` Jon Turney
  0 siblings, 1 reply; 11+ messages in thread
From: Ken Brown @ 2017-12-04 15:59 UTC (permalink / raw)
  To: cygwin-apps

---
 site.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/site.cc b/site.cc
index 641a6bb..64e56a8 100644
--- a/site.cc
+++ b/site.cc
@@ -759,7 +759,9 @@ bool SitePage::OnMessageCmd (int id, HWND hwndctl, UINT code)
     {
     case IDC_EDIT_USER_URL:
       {
-	// FIXME: Make Enter here cause an ADD, not a NEXT.
+	// Set the default pushbutton to ADD if the user is entering text.
+	if (code == EN_CHANGE)
+	  SendMessage (GetHWND (), DM_SETDEFID, (WPARAM) IDC_BUTTON_ADD_URL, 0);
 	break;
       }
     case IDC_URL_LIST:
-- 
2.15.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-08 16:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-04 15:59 [PATCH setup] Make Enter in the user URL box cause ADD instead of NEXT Ken Brown
2017-12-05 12:58 ` Jon Turney
2017-12-05 16:03   ` Ken Brown
2017-12-05 17:32     ` Ken Brown
2017-12-07 18:35       ` Jon Turney
2017-12-07 20:46         ` Ken Brown
2017-12-08  4:55           ` Brian Inglis
2017-12-08 14:47             ` Ken Brown
2017-12-08 15:55               ` Jon Turney
2017-12-08 15:48           ` Jon Turney
2017-12-08 16:14             ` Ken Brown

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).