Commit 7f268427f4abe30f09551b112bb0a1805dd0d256
1 parent
fa68786aaa
Exists in
master
correcciones tipeo
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/js/angular-on-screen-keyboard-directive.js
... | ... | @@ -84,7 +84,7 @@ angular.module('onScreenKeyboard', ['ngSanitize']) |
84 | 84 | } else if (key.type === 'shift') { |
85 | 85 | ctrl.isUpperCase = !ctrl.isUpperCase; |
86 | 86 | return; |
87 | - } else if (key.type === 'enter'){ | |
87 | + } else if (key.type === 'enter') { | |
88 | 88 | ctrl.pressEnterKey(); |
89 | 89 | return; |
90 | 90 | } |
... | ... | @@ -174,12 +174,12 @@ angular.module('onScreenKeyboard', ['ngSanitize']) |
174 | 174 | } |
175 | 175 | }; |
176 | 176 | |
177 | - ctrl.pressEnterKey = function () { | |
177 | + ctrl.pressEnterKey = function() { | |
178 | 178 | |
179 | - $timeout(function () { | |
179 | + $timeout(function() { | |
180 | 180 | if (angular.element(':focus').length > 0) { |
181 | 181 | |
182 | - let el = angular.element(':focus')[0], | |
182 | + var el = angular.element(':focus')[0], | |
183 | 183 | down = new KeyboardEvent('keydown', |
184 | 184 | { |
185 | 185 | which: 13, |