Commit 2d14288e84ef515853cdb4ba26671313c89101d6

Authored by higo.gomes
1 parent e9b7a71b

git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%2…

…0Web/Fontes/avaliador-web@10604 c2178572-b5ca-4887-91d2-9e3a90c7d55b
src/main/webapp/inicial_arquivos/js/tab_script.js 0 → 100644
... ... @@ -0,0 +1,40 @@
  1 +$(document).ready(function()
  2 +
  3 + {
  4 + var teclaPressionada;
  5 + var shiftPressionado;
  6 +
  7 + $(document).keydown(function(e) {
  8 + if(e.which != 13 )
  9 + {
  10 + shiftPressionado = e.shiftKey;
  11 + teclaPressionada = e.which;
  12 +
  13 + $("#input").blur(function() {
  14 + if (shiftPressionado == true) {
  15 + $("#tab-2").prop("checked", true);
  16 + }
  17 + });
  18 + $("#up_file").blur(function() {
  19 + if (shiftPressionado == true) {
  20 + $("#tab-1").prop("checked", true);
  21 + }
  22 +
  23 + });
  24 +
  25 + $("#input_tab_1").blur(function() {
  26 + if (shiftPressionado == false && teclaPressionada == 9) {
  27 + $("#tab-2").prop("checked", true);
  28 + }
  29 +
  30 + });
  31 + $("#input_tab_2").blur(function() {
  32 + if (shiftPressionado == false && teclaPressionada == 9) {
  33 + $("#tab-3").prop("checked", true);
  34 + }
  35 +
  36 + });
  37 + }
  38 + });
  39 +
  40 + });
0 41 \ No newline at end of file
... ...