Closed Bug 436616 Opened 16 years ago Closed 6 years ago

Location bar autocomplete dropdown disappears when moving text cursor using arrow keys

Categories

(Firefox :: Address Bar, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: myron02, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008053006 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008053006 Minefield/3.0pre

The autocomplete menu in the location bar disappears when you move the text cursor using the left or right arrow keys. It should stay open because the words in the search haven't changed.

Reproducible: Always

Steps to Reproduce:
1. Clear the location bar
2. Type a letter or two so that the autocomplete menu shows up
3. Press the left or right arrow keys to move the blinking text cursor
Actual Results:  
The autocomplete menu disappears when the left or right arrow keys are pressed.

Expected Results:  
The autocomplete menu should stay open because the search keywords haven't changed.

Exists on Firefox 2 and 3. Works correctly on IE and Opera.
Version: unspecified → Trunk
I imagine that http://ed.agadak.net/2008/05/edit-middle-add-on-for-awesomebar fixes this.

According to http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp&rev=1.82#489 it was made to close as part of bug 290172 without a specific reason for fixing the bug that way.

Because the delete key can delete autocomplete entries, navigating within the URL definitely needs to return focus to the location bar (deselecting any selected autocomplete item), but I agree with you that it probably doesn't need to close.
(In reply to comment #1)
> I imagine that http://ed.agadak.net/2008/05/edit-middle-add-on-for-awesomebar
> fixes this.
> 

I've tried that, but the problem still exists.
The "Edit Middle" add-on is to make the location bar do a search after you edit. The problem reported here is that the suggestions disappear when you just move the cursor.

The original code Jesse pointed to came from bug 283777 which was to make the suggestions go away when the user pushes left/right instead of dropping the currently selected value.

Perhaps it should select the value without closing the popup.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.