Browse Source

Prevent keyboard hide on message send

Closes #259
master
Igor Zhukov 11 years ago
parent
commit
e237b3d2b6
  1. 6
      app/js/directives.js

6
app/js/directives.js

@ -634,6 +634,12 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -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;
$(editorElement).on('keyup', function (e) {
var now = tsNow();

Loading…
Cancel
Save