]> matita.cs.unibo.it Git - helm.git/commitdiff
More keyboard handling tests
authorWilmer Ricciotti <ricciott@cs.unibo.it>
Thu, 14 Jul 2011 12:43:13 +0000 (12:43 +0000)
committerWilmer Ricciotti <ricciott@cs.unibo.it>
Thu, 14 Jul 2011 12:43:13 +0000 (12:43 +0000)
matitaB/matita/matitaweb.js

index 38f8c97d01bb7b4b4f24f9ba7896baec28b803de..8b607e21adcb897cebea009b3bdcc98075bb2d69 100644 (file)
@@ -117,8 +117,7 @@ function restoreSelection() {
             if (s.rangeCount > 0) 
                 s.removeAllRanges();
            range = document.createRange();
-           range.startContainer = savedsc;
-           range.startOffset = savedso;
+           range.setStart(savedsc,savedso);
            range.collapse(true);
             s.addRange(range);
         }