Prevent keyboard hide on message send

Closes #259
This commit is contained in:
Igor Zhukov 2014-06-04 13:42:01 +04:00
parent f265540727
commit e237b3d2b6

View File

@ -634,6 +634,12 @@ angular.module('myApp.directives', ['myApp.filters'])
}); });
$('.im_submit', element).on('mousedown', function (e) {
$(element).trigger('submit');
$(element).trigger('message_send');
return cancelEvent(e);
});
var lastTyping = 0; var lastTyping = 0;
$(editorElement).on('keyup', function (e) { $(editorElement).on('keyup', function (e) {
var now = tsNow(); var now = tsNow();