Skip to content
代码片段 群组 项目
提交 71668312 编辑于 作者: Douwe Maan's avatar Douwe Maan
浏览文件

Submit comment on command-enter.

Fixes #1869.
上级 0a9cab4e
No related branches found
No related tags found
无相关合并请求
......@@ -35,7 +35,7 @@ v 7.8.0
-
- 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)
- 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'
$(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()
)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册