From: Wilmer Ricciotti Date: Wed, 13 Jul 2011 14:46:06 +0000 (+0000) Subject: more keyboard events tests X-Git-Tag: make_still_working~2386 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=98a02c0402c29eceb2c07b45ab2383983f13cc95;p=helm.git more keyboard events tests --- diff --git a/matitaB/matita/matitaweb.js b/matitaB/matita/matitaweb.js index 05629a2cb..0cf29e349 100644 --- a/matitaB/matita/matitaweb.js +++ b/matitaB/matita/matitaweb.js @@ -114,7 +114,11 @@ function keypress(e) pressmesg('keypress',e); var s = string_of_key(e.charCode); if (s == " ") { - return suppressdefault(e,true); + i = unlocked.innerHTML.lastIndexOf('\\',getCursorPos()); + if (i >= 0) { + window.alert("found " + unlocked.innerHTML.substring(i,getCursorPos())); + } + return suppressdefault(e,true); } else { return suppressdefault(e,false); }