From 7f268427f4abe30f09551b112bb0a1805dd0d256 Mon Sep 17 00:00:00 2001 From: Jose Pinto Date: Wed, 5 Dec 2018 16:02:00 -0300 Subject: [PATCH] correcciones tipeo --- src/js/angular-on-screen-keyboard-directive.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/angular-on-screen-keyboard-directive.js b/src/js/angular-on-screen-keyboard-directive.js index f4b110e..2c0582f 100644 --- a/src/js/angular-on-screen-keyboard-directive.js +++ b/src/js/angular-on-screen-keyboard-directive.js @@ -84,7 +84,7 @@ angular.module('onScreenKeyboard', ['ngSanitize']) } else if (key.type === 'shift') { ctrl.isUpperCase = !ctrl.isUpperCase; return; - } else if (key.type === 'enter'){ + } else if (key.type === 'enter') { ctrl.pressEnterKey(); return; } @@ -174,12 +174,12 @@ angular.module('onScreenKeyboard', ['ngSanitize']) } }; - ctrl.pressEnterKey = function () { + ctrl.pressEnterKey = function() { - $timeout(function () { + $timeout(function() { if (angular.element(':focus').length > 0) { - let el = angular.element(':focus')[0], + var el = angular.element(':focus')[0], down = new KeyboardEvent('keydown', { which: 13, -- 1.9.1