Open Bug 167708 Opened 24 years ago Updated 15 years ago

Backspace breaks inline autocomplete

Categories

(SeaMonkey :: Autocomplete, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: alex, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020909 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020909 Inline-autocomplete stops after backspace when entering an URL in the location bar. Reproducible: Always Steps to Reproduce: 1. Make sure inline-autocomplete is enabled (Edit -> Preferences -> Smart Browsing -> Advanced -> "Autocomplete best match as you type" 2. Load an URL to make sure it's in the autocomplete history (such as: http://slashdot.org) 3. Go to location bar 4. Type "slashf" (notice the typo) 5. Hit backspace to remove the "f" Actual Results: Inline autocomplete is off Expected Results: Inline autocomplete should have suggested "slashdot.org" (since "slash" was already there)
Confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Core → Mozilla Application Suite
When autofill kicks in, the first backspace you hit only deletes the the selected part (after what you typed). This is standard behavior for a textbox (which is what the URL field is) although autofill is certianly /not/ standard behavior for a textbox. After that, backspace does delete previous characters. As such, this is probably pretty difficult to fix.
Assignee: hewitt → nobody
OS: Windows 2000 → All
QA Contact: claudius
Hardware: PC → All
That is correct, but the way I understand the problem, the autocomplete component should suggest new entries based on the updated location bar value. I don't think that should be very difficult to fix.
It does show them in the dropdown after you hit backspace, it just doesn't do the autofill part. And as you hit backspace to actually delete characters, the suggestions are updated.
Depends on: 135019
WORKAROUND: The Autocomplete Manager extension (https://addons.mozilla.org/extensions/moreinfo.php?id=2300) includes a bugfix for this.
Unless I misunderstand this bug, I consider this either INVALID or WONTFIX, depending. When you have deleted (and not added) text, autofill should not suggest anything, because any suggestion will require a press of the delete key to clear. So for example, let's say I have the following two sites in my history: slashdot.org slashfriends.com (I made this up) ...and I start typing "slashdot" but my hands slip and I type "slashfp". With your suggestion, getting back to "slash" requires three delete presses, because after deleting 'p', we'll suggest "slashfriends.com", and I'll have to hit delete again just to cancel the suggestion. Then I need to hit delete again to delete another character. If you had typed several wrong characters, you can see how this pattern basically doubles the number of delete presses needed, which is incredibly aggravating. However, as soon as you ADD text to the URL, autofill will begin suggesting again, because there is no need to hit an additional key to cancel erroneous suggestions. If I've misunderstood what you're asking for, please advise.
The purpose of this bug is (when autofill is active) to make a single keypress of backspace to delete selected string after the cursor, delete the previously-typed character /and/ fill in a new completion. Doing the first two alone would be bug 135019
Severity: normal → enhancement
You need to log in before you can comment on or make changes to this bug.