From: Wilmer Ricciotti Date: Wed, 13 Jul 2011 15:02:53 +0000 (+0000) Subject: more keyboard events tests. X-Git-Tag: make_still_working~2384 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=14de930fc3f295e600b7b2f70071af98c16f2d5a;p=helm.git more keyboard events tests. --- diff --git a/matitaB/matita/matitaweb.js b/matitaB/matita/matitaweb.js index 1088f51ce..1bebb6d30 100644 --- a/matitaB/matita/matitaweb.js +++ b/matitaB/matita/matitaweb.js @@ -118,8 +118,8 @@ function keypress(e) i = unlocked.innerHTML.lastIndexOf('\\',j); if (i >= 0) { match = unlocked.innerHTML.substring(i,j); - pre = unlocked.innerHTML.substring(0,i-1); - post = unlocked.innerHTML.substring(j+1); + pre = unlocked.innerHTML.substring(0,i); + post = unlocked.innerHTML.substring(j); if (match == '\\to') { unlocked.innerHTML = pre + "-> " + post; return suppressdefault(e,true);