Commit f18f8e67 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6970 from skv-headless/fix_ctrl_enter_notes_send

fix ctrl+enter note send
parents 582646ff 24b68fda
......@@ -55,7 +55,7 @@ class Notes
@notes_forms = '.js-main-target-form textarea, .js-discussion-note-form textarea'
$(document).on('keypress', @notes_forms, (e)->
if event.keyCode == 10 || (event.ctrlKey && event.keyCode == 13)
if e.keyCode == 10 || (e.ctrlKey && e.keyCode == 13)
$(@).parents('form').submit()
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment