Closed Bug 1178341 Opened 9 years ago Closed 9 years ago

in bugzilla lite, enter in title should not submit bug

Categories

(Firefox OS Graveyard :: Gaia::Bugzilla Lite, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1159959

People

(Reporter: larsberg, Unassigned)

Details

(Keywords: foxfood, Whiteboard: [bzlite])

User-Agent: Mozilla/5.0 (Mobile; rv:41.0) Gecko/41.0 Firefox/41.0
Component: Gaia::Feedback → Gaia::Bugzilla Lite
QA Whiteboard: [foxfood-triage]
feature-b2g: --- → 2.5+
I can make the textarea required, but fairly often I dont want to write out a comment I just want to enter a title and send a screenshot and follow up with a longer comment later / on the desktop.

This is the default behaviour for web content forms so I don't particularly want to workaround the default behaviour, it seems like if its a problem it should be fixed in the platform / keyboard.

Lars what did you expect to happen when you pressed the return key? 
Tim got any thoughts on this (or who I should be pinging about keyboard / form UX issues)?
Flags: needinfo?(timdream)
Flags: needinfo?(larsberg)
And removing blocker flags, its not clear its a bug at this point
No longer blocks: 2.5_BugzillaLite
feature-b2g: 2.5+ → ---
I would have hoped that enter would just do nothing in this field and I'd have to touch a button to submit. Or a "do you want to submit with an empty description field?" confirmation would have appeared.

I'm certainly open to pushback, though. I find myself accidentally hitting enter on FFOS, so I opened several bugs with just a third of a title in them, then had to go to full/desktop bugzilla to finish filling them out for real.
Flags: needinfo?(larsberg)
The default action of an enter in <form action=...><input></form> is submit. This behavior is there since the beginning of the Web.

Bzlite is responsible of prevent form submission. Nothing the keyboard/input method API could do without breaking the Web in general.

Thanks.
Flags: needinfo?(timdream)
Yup I realise it is a default for web forms, but I was questioning whether it was a good idea for it be the default behaviour, on native forms return seems to typically move to the next input field and only submit once you have got to the end, this seems a far saner default behaviour.

Either way the behaviour has changed by default in 1159959, where in bugzilla lite you need to press the submit button to submit now, enter wont do anything so going to close as a dupe
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.