Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Pressing esc two times to clear typing #3088

Closed
darkdh opened this issue Aug 10, 2016 · 4 comments
Closed

Pressing esc two times to clear typing #3088

darkdh opened this issue Aug 10, 2016 · 4 comments
Milestone

Comments

@darkdh
Copy link
Member

darkdh commented Aug 10, 2016

Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
We must press esc two times to clear typing text which is the behavior of Firefox
Expected behavior:
We should follow the behavior of Chrome by pressing esc once

@bridiver
Copy link
Collaborator

actually there isn't a requirement to press escape twice, but pressing escape once will deactivate suggestions if they are present. That behavior matches safari and personally I prefer it over Chrome's behavior. There does appear to be a slight bug in the detection of suggestions though. If there are no suggestions in the list, you will still see the 'page' icon next to the url until you press escape to deactivate it. @bbondy @bradleyrichter

@bbondy
Copy link
Member

bbondy commented Aug 10, 2016

Ya Anthony asked me this same thing and I said I think it is a bug and to post it. But I don't mind either way. I'll let @bradleyrichter decide.

@bridiver
Copy link
Collaborator

bridiver commented Aug 10, 2016

well, I think there is a bug, but the bug is in the detection of suggestions. shouldRenderUrlBarSuggestions returns true when there are no suggestions in the list. That's the reason why you always have to press escape twice.

@bbondy bbondy added this to the 0.11.5dev milestone Aug 10, 2016
@bbondy
Copy link
Member

bbondy commented Aug 12, 2016

Unfortunately this suggestions code is in major need of a refactor, I documented it here:
#3151

So the component does need to be called currently. But we can add a small check for making sure there is a size to the list for the stop thing for now and revert that later when #3151 gets fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants