mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Merge branch 'submit-comment-on-command-enter' into 'master'
Submit comment on command enter Fixes #1869. See merge request !1474
This commit is contained in:
@ -37,7 +37,7 @@ v 7.8.0
|
|||||||
-
|
-
|
||||||
- Add a commit calendar to the user profile (Hannes Rosenögger)
|
- Add a commit calendar to the user profile (Hannes Rosenögger)
|
||||||
-
|
-
|
||||||
-
|
- Submit comment on command-enter
|
||||||
-
|
-
|
||||||
- Fix long broadcast message cut-off on left sidebar (Visay Keo)
|
- Fix long broadcast message cut-off on left sidebar (Visay Keo)
|
||||||
- Add Project Avatars (Steven Thonus and Hannes Rosenögger)
|
- Add Project Avatars (Steven Thonus and Hannes Rosenögger)
|
||||||
|
@ -59,7 +59,7 @@ class @Notes
|
|||||||
|
|
||||||
@notes_forms = '.js-main-target-form textarea, .js-discussion-note-form textarea'
|
@notes_forms = '.js-main-target-form textarea, .js-discussion-note-form textarea'
|
||||||
$(document).on('keypress', @notes_forms, (e)->
|
$(document).on('keypress', @notes_forms, (e)->
|
||||||
if e.keyCode == 10 || (e.ctrlKey && e.keyCode == 13)
|
if e.keyCode == 10 || ((e.metaKey || e.ctrlKey) && e.keyCode == 13)
|
||||||
$(@).parents('form').submit()
|
$(@).parents('form').submit()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user