Closed
Bug 1009716
Opened 11 years ago
Closed 6 years ago
Add (Cmd|Ctrl)+Enter shortcut for submitting from text areas.
Categories
(bugzilla.mozilla.org :: General, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: pmac, Assigned: kohei)
References
Details
(Keywords: bmo-ux, ux-efficiency)
Attachments
(1 file)
I tried to get this enhancement into BugzillaJS[0], but it would be even better if it were in BMO proper. It's become fairly standard around the web to use Cmd+Enter (or Ctrl+Enter) to submit a form when focused in a text area, especially in the context of commenting or creating a post. If this worked from the comment and new bug textareas it would be wonderful, with possibly a user pref for (en|dis)abling. The JS for doing this is pretty straight forward as you can see from my code in the PR [0].
[0] https://github.com/gkoberger/BugzillaJS/pull/90
I'm happy to contribute the code for this if one of you kind BMO devs could point me in the direction of the code I should edit.
this probably belongs upstream, but i'm happy to iterate on it on bmo to get the design right.
ideally this should apply to all textarea fields, so that's:
http://git.mozilla.org/?p=webtools/bmo/bugzilla.git;a=blob;f=template/en/default/global/textarea.html.tmpl [github]
http://git.mozilla.org/?p=webtools/bmo/bugzilla.git;a=blob;f=js/field.js [github]
Updated•8 years ago
|
Component: User Interface → User Interface: Modal
Comment 2•8 years ago
|
||
https://github.com/mozilla-bteam/bmo/blob/master/extensions/BugModal/web/bug_modal.js#L1021
Sketch of the logic, I think:
When the user types cmd-enter or ctrl-enter:
If comment area is focused OR the preview area of the comment is visible, save changes.
Otherwise, ignore.
Reporter | ||
Comment 3•8 years ago
|
||
Sounds right to me. Thanks Dylan!
Assignee | ||
Comment 4•6 years ago
|
||
:nchevobbe wants this. https://twitter.com/nicolaschevobbe/status/1050673582274109442
The comment editor I’m working on and currently under review (Bug 1484892) comes with a Ctrl/Cmd+Enter shortcut, so it’s would be nice to have the same for the Add Comment field. Will work on this soon.
Assignee: nobody → kohei.yoshino
Severity: normal → enhancement
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Component: User Interface: Modal → General
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Keywords: bmo-ux,
ux-efficiency
Assignee | ||
Comment 6•6 years ago
|
||
Merged to master.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•