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)
support.mozilla.org
Knowledge Base Software
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.
| Reporter | ||
Comment 1•14 years ago
|
||
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.
Comment 2•14 years ago
|
||
Changing the CSS for the hidden submitter does the trick for Safari:
input.hidden-submitter {
left: -9999px;
position: absolute;
}
| Reporter | ||
Comment 3•14 years ago
|
||
Bless you, sir. That solves one problem.
Updated•14 years ago
|
Priority: P3 → P5
Updated•14 years ago
|
Target Milestone: 2.3 → Future
Comment 4•11 years ago
|
||
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.
Description
•