Commit 24b68fda authored by Evgeniy Sokovikov's avatar Evgeniy Sokovikov

fix ctrl+enter note send

use argument e instead of event
parent c91300e4
......@@ -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