]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8591 [verto_communicator] restoring chat send button behavior
authorItalo Rossi <italorossib@gmail.com>
Tue, 22 Dec 2015 18:58:48 +0000 (15:58 -0300)
committerItalo Rossi <italorossib@gmail.com>
Tue, 22 Dec 2015 18:58:48 +0000 (15:58 -0300)
html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js

index 8c3be2d3d2d0e3ad727a981fa3b63dc848d92250..c74e25ab2c3780676d99e2cf6798f716708636a9 100644 (file)
@@ -1,3 +1,4 @@
+
 (function() {
   'use strict';
 
         // 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;
       };