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,