Closed
Bug 1472080
Opened 6 years ago
Closed 6 years ago
Hitting Enter while Autocomplete popup is open can be confusing
Categories
(DevTools :: Console, defect, P1)
DevTools
Console
Tracking
(firefox63 fixed)
RESOLVED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
(Whiteboard: [boogaloo-mvp])
Attachments
(1 file)
**Steps to reproduce** 1. Open the console 2. Type `d` 3. The autocompletion popup open, probably with `decodeUri` item appearing selected 4. Hit Enter **Expected results** Since there's an autocompletion popup item "selected", I expect the console to be filled with the selected item (decodeUri) **Actual results** `d` gets evaluated --- Enter only evaluate the selected autocomplete popup item if the user navigated the autocompletion list (with up or down arrow). This can be very confusing because 2 similar visual state can have different behavior. The alternatives are the following: - Always select the autocomplete popup selected item, even if the user did not navigate the list (which is what Chrome and VsCode do). I guess it wasn't done that way because there might be cases when you want to evaluate what you just typed, and the autocomplete selected item is different from that ? This case shouldn't happen IMO if the autocompletion does its job correctly. - Don't automatically select the first element from the autocompletion popup. I would be against this I think because then it requires 2 steps to autocomplete.
Assignee | ||
Comment 1•6 years ago
|
||
Victoria, what do you think of this ?
Comment 2•6 years ago
|
||
Yes! I agree completely with your reasoning on this (single-step, select first autocomplete item, press Enter to fill input with selected item). Easy enough to just keep typing or press ESC if the autocomplete isn't right.
Flags: needinfo?(victoria)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Assignee | ||
Updated•6 years ago
|
Priority: P2 → P1
Comment hidden (mozreview-request) |
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8992647 [details] Bug 1472080 - Make Enter always autocomplete the selected result; . https://reviewboard.mozilla.org/r/257514/#review264412 Nice cleanup ::: commit-message-54714:1 (Diff revision 1) > +Bug 1472080 - Better console input autocompletion behaviour; r=bgrins. Please change this line to explain the behavior change. Maybe: "Make Enter always autocomplete the selected result" or something like that.
Attachment #8992647 -
Flags: review?(bgrinstead) → review+
Comment hidden (mozreview-request) |
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/616da64bc004 Make Enter always autocomplete the selected result; r=bgrins.
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/616da64bc004
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in
before you can comment on or make changes to this bug.
Description
•