FS-8591 [verto_communicator] - Changed ng-keyup to ng-keydown

This commit is contained in:
Jaon EarlWolf 2015-12-21 15:48:53 -03:00
parent 222eff143c
commit aede42e8bd
2 changed files with 3 additions and 2 deletions

View File

@ -188,7 +188,7 @@
<div class="chat-message-input">
<form ng-submit="send()" >
<div class="chat-message-input-group">
<textarea ng-model="message" ng-keyup="($event.keyCode == 13 && $event.shiftKey !== true) && send()" required="required" class="form-control input-sm" placeholder="Type your message here..."></textarea>
<textarea ng-model="message" ng-keydown="($event.keyCode == 13 && $event.shiftKey !== true) && send($event)" required="required" class="form-control input-sm" placeholder="Type your message here..."></textarea>
<button class="btn btn-success btn-sm" type="submit">
Send
<span class="mdi-navigation-arrow-forward chat-message-input-group-icon-button"></span>

View File

@ -191,10 +191,11 @@
$scope.openId = $scope.openId == index ? null : index;
};
$scope.send = function() {
$scope.send = function(event) {
// Only conferencing chat is supported for now
// but still calling method with the conference prefix
// so we know that explicitly.
event.preventDefault();
verto.sendConferenceChat($scope.message);
$scope.message = CLEAN_MESSAGE;
};