Opened 13 years ago
Closed 7 years ago
#21934 closed enhancement (worksforme)
Title field on Insert/edit link form shouldn't allow autosuggest
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4.2 |
Component: | Editor | Keywords: | ux-feedback has-patch needs-refresh |
Focuses: | administration | Cc: |
Description
When entering a link through the "Insert/edit link" thickbox form, Firefox displays autosuggest dropdowns for both the URL field and the title field.
This would be helpful, except that the javascript keyboard handlers bound on keydown/keyup prevent the browser UI from being accessible.
What happens is:
- User tries to add link to text through the editor (Visual or HTML).
- User enters the correct URL into the URL field, and exits that field by hitting "tab".
- User begins typing the link title. Firefox browser UI helpfully suggests some similar titles.
- User sees a title they'd like to use, and hit the keyboard down arrow, thinking that this will select the correct title for them.
- What actually happens is that the first link listed below in the link to existing content gets selected. This overwrites what's been entered in the URL and title field.
- User says, WTF just happened.
Solutions:
- Adding
autocomplete="off"
to these two form fields would prevent Firefox from displaying its autosuggestions. This might fix the problem, but feels kind of like a bandaid.
- A keydown/keyup handler could be attached to each of the text input fields with event.stopPropagation could stop the ui keyboard behavior when typing into those fields.
Attachments (2)
Change History (9)
#1
@
13 years ago
- Keywords 2nd-opinion added
When adding a link I am able to use my down arrow to select a previous title. I am using Ubuntu 12.04.1 and FireFox 15. I also tested in Chrome, it was a different experience. It did not show me any suggestions.
#2
@
11 years ago
- Keywords ux-feedback added
- Milestone changed from Awaiting Review to Future Release
Not sure it's a good idea to disable autocomplete for these fields. The user may be adding similar or the same URLs and titles several times.
Unbinding the down-arrow key while the fields are focused seems sensible. Generally a tab should highlight the first choice in the list of links and then the arrow keys should move the selection up/down, similarly to how a <select size="10"> works.
#3
@
10 years ago
- Focuses administration added
- Keywords has-patch needs-refresh added; 2nd-opinion removed
- Type changed from defect (bug) to enhancement
Patch that unbinds keydown/keyup handlers while input fields are focused