Closed Bug 611748 Opened 14 years ago Closed 11 years ago

On synchronous tag widget, make Return presses activate the Add button

Categories

(support.mozilla.org :: Knowledge Base Software, task, P5)

Tracking

(Not tracked)

RESOLVED INVALID
Future

People

(Reporter: erik, Unassigned)

Details

When the tag widget does not constitute its own form, hitting Return in the tag input field should perform the same action as clicking Add. This works in Minefield right now (I stuck a display: none submit button at the top of the widget) but not in Safari 5.0.2. As a result of that hack, hitting Return in any of the other form fields hits the Add button, not whatever form-wide Submit button there may be. Make this work more intuitively, probably by intercepting keypresses with JS.
For that matter, hitting Return in other form fields in Safari ignores the hidden submit control and instead hits the first tag remover X that exists. Perhaps we can't have any of those tag-related inputs be inputs in the synchronous variant of the widget. Perhaps we'll have to drive the whole thing with JS and buttons. But then that kills our JS-less fallback.
Changing the CSS for the hidden submitter does the trick for Safari: input.hidden-submitter { left: -9999px; position: absolute; }
Bless you, sir. That solves one problem.
Priority: P3 → P5
Target Milestone: 2.3 → Future
Works as expected in FF29. Pressing <enter> while in the Tag text box adds the tag.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.