Changeset 4b39339 in sicp for static


Ignore:
Timestamp:
Jan 13, 2016, 11:57:04 AM (8 years ago)
Author:
Ing. Roldan D. Vargas G <rvargas@…>
Branches:
master
Children:
aa35197
Parents:
74e4ca4
Message:

agregada función que permite capturar eventos del teclado

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/js/layout.js

    r436dcaa r4b39339  
    217217    });
    218218});
     219
     220/**
     221* Instrucciones para capturar eventos del teclado y ejecutar las acciones correspondientes
     222*
     223* @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     224* @copyright GNU/GPLv2
     225* @date 13-01-2016
     226*/
     227$(document).keypress(function(e) {
     228    var form = $('.form');
     229    if (form.length && e.which == 13) {
     230        form.submit();
     231    }
     232});
Note: See TracChangeset for help on using the changeset viewer.