Commit d9cd4130891502aa422b56901919a1015931c5dd

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'develop'

Master(efernandez)

See merge request !25
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) {