Commit 01da053c8185a12f306eed46fb30b79e1c54bc41
1 parent
55aef6d2b5
Exists in
master
and in
1 other branch
me quiero ir a mi casa
Showing
1 changed file
with
18 additions
and
0 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -462,6 +462,24 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 462 | 462 | }); |
| 463 | 463 | }; |
| 464 | 464 | |
| 465 | + //Recibe aviso si el teclado está en uso | |
| 466 | + $rootScope.$on('usarTeclado', function (event, data) { | |
| 467 | + if (data) { | |
| 468 | + $scope.mostrarTeclado = true; | |
| 469 | + return; | |
| 470 | + } | |
| 471 | + $scope.mostrarTeclado = false; | |
| 472 | + }); | |
| 473 | + | |
| 474 | + $scope.selectFocus = function ($event) { | |
| 475 | + // Si el teclado esta en uso no selecciona el valor | |
| 476 | + if ($scope.mostrarTeclado) { | |
| 477 | + return; | |
| 478 | + } | |
| 479 | + $event.target.select(); | |
| 480 | + }; | |
| 481 | + | |
| 482 | + | |
| 465 | 483 | function getProductosByPlanilla(numeroPlanilla) { |
| 466 | 484 | |
| 467 | 485 | crearFacturaService.getProductosByPlanilla(numeroPlanilla).then(function (res) { |