From: Italo Rossi Date: Tue, 22 Dec 2015 18:58:48 +0000 (-0300) Subject: FS-8591 [verto_communicator] restoring chat send button behavior X-Git-Tag: v1.6.6~1^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee12caebd20bece266c1a0673928f21e37929a8f;p=thirdparty%2Ffreeswitch.git FS-8591 [verto_communicator] restoring chat send button behavior --- diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js index 8c3be2d3d2..c74e25ab2c 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js @@ -1,3 +1,4 @@ + (function() { 'use strict'; @@ -199,7 +200,9 @@ // Only conferencing chat is supported for now // but still calling method with the conference prefix // so we know that explicitly. - event.preventDefault(); + if (event && event.type == 'keydown') { + event.preventDefault(); + } verto.sendConferenceChat($scope.message); $scope.message = CLEAN_MESSAGE; };