X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=js%2Finserts.js;h=7450c199d40c670e42b3fa8e04632f755d515883;hb=5db6030e4d0126be8883347574111be381478256;hp=b16a11538f14c518292147060dc6d73f1498f206;hpb=31629799f984d0237fe73f366d3d3d75448f1f34;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index b16a1153..7450c199 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -1,7 +1,17 @@ +/********************************************************************** + Copyright (C) FrontAccounting, LLC. + Released under the terms of the GNU General Public License, GPL, + as published by the Free Software Foundation, either version 3 + of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License here . +***********************************************************************/ var _focus; var _hotkeys = { 'alt': false, // whether is the Alt key pressed - 'focus': -1 // currently selected indeks of document.links + 'focus': -1 // currently selected indeks of document.links }; function debug(msg) { @@ -162,7 +172,13 @@ var inserts = { if((ev.ctrlKey && key == 13) || key == 27) { ev.cancelBubble = true; if(ev.stopPropagation) ev.stopPropagation(); -// here ctrl-enter/escape support + // activate submit/escape form + for (var i=0; i