mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
closes #3619
This commit is contained in:
@@ -46,6 +46,7 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
|||||||
inputEl.on('keypress', function(e) {
|
inputEl.on('keypress', function(e) {
|
||||||
if(e.which === 13 && !e.shiftKey) {
|
if(e.which === 13 && !e.shiftKey) {
|
||||||
Chats.sendMessage(Chats.getRecipientUid(), inputEl);
|
Chats.sendMessage(Chats.getRecipientUid(), inputEl);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user