Commit 72db22d385ad98eea44bdc880ca08c95f867241e
1 parent
316cf619
Exists in
master
and in
4 other branches
send wall message with crtl+enter
Showing
2 changed files
with
5 additions
and
0 deletions
Show diff stats
app/assets/javascripts/wall.js.coffee
... | ... | @@ -61,6 +61,10 @@ |
61 | 61 | filename = $(this).val().replace(/^.*[\\\/]/, '') |
62 | 62 | form.find(".js-attachment-filename").text(filename) |
63 | 63 | |
64 | + form.find('.note_text').keydown (e) -> | |
65 | + if e.ctrlKey && e.keyCode == 13 | |
66 | + form.find('.js-comment-button').submit() | |
67 | + | |
64 | 68 | form.show() |
65 | 69 | |
66 | 70 | renderNote: (note) -> | ... | ... |
app/views/walls/show.html.haml