public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps@cygwin.com
Subject: Re: [PATCH setup] Make Enter in the user URL box cause ADD instead of NEXT
Date: Fri, 08 Dec 2017 16:14:00 -0000	[thread overview]
Message-ID: <0d9ae82f-a964-e864-4b0d-4602e5067615@cornell.edu> (raw)
In-Reply-To: <08c463e1-348d-0c9c-fea5-34b0f42f8dd7@dronecode.org.uk>

On 12/8/2017 10:48 AM, Jon Turney wrote:
> On 07/12/2017 20:46, Ken Brown wrote:
>> On 12/7/2017 1:35 PM, Jon Turney wrote:
>>> On 05/12/2017 17:32, Ken Brown wrote:
>>>> On 12/5/2017 11:03 AM, Ken Brown wrote:
>>>>> On 12/5/2017 7:58 AM, Jon Turney wrote:
>>>>>> The search textbox on the package chooser page needs the same fix.
>>>>>
>>>>> It's not immediately clear to me how to do this, since I don't know 
>>>>> what the default pushbutton should be while the user is typing in 
>>>>> the search box.
>>>>>
>>>>> One possibility is to convert the label "Search" to the left of the 
>>>>> box to a SEARCH pushbutton, whose effect is to call 
>>>>> OnTimerMessage(). If we make this the default, then pressing Enter 
>>>>> will cause the search filter to immediately take effect, which is 
>>>>> probably what the user expects.
>>>
>>> It seems a bit weird to have a button which automatically pushes 
>>> itself half a second after you finish typing.
>>>
>>> Attached is my attempt, which (ab)uses an invisible button.
>>
>> I agree, this is better than my version.
>>
>>>> Something like the attached?  This might not be quite right, because 
>>>> the previous default button is never restored.  I'm not sure how 
>>>> important that is.
>>>
>>> I think it's something that should be done, if possible, so I added 
>>> that.
>>
>> In my testing, 'Next' does indeed become the default button after I 
>> click outside of the textbox, but there's no visual indication of this.
> 
> This is interesting: if you use TAB to move the focus out of the 
> textbox, then first "Clear" gets highlight (because it's a pushbutton 
> and enter pushes it), TAB again and "Current is selected (but "Next" 
> gets the highlight, because that's what enter pushes)
> 
> If you click to move the focus, it only seems to update the highlight 
> the second time you do that.
> 
> Which I guess suggests we should be ensuring the highlight is drawn on 
> EN_KILLFOCUS?
> 
> But once I do that, it seems I need to explicitly remove as well, which 
> gives the attached, incremental patch.

That seems to fix it.  Thanks.

Ken

      reply	other threads:[~2017-12-08 16:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-04 15:59 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0d9ae82f-a964-e864-4b0d-4602e5067615@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).