html5/spec-author-view jump-indexes.js,1.1,1.2

Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv18246

Modified Files:
	jump-indexes.js 
Log Message:
updated

Index: jump-indexes.js
===================================================================
RCS file: /sources/public/html5/spec-author-view/jump-indexes.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- jump-indexes.js	9 May 2011 05:01:39 -0000	1.1
+++ jump-indexes.js	9 May 2011 05:10:32 -0000	1.2
@@ -11,22 +11,20 @@
     jumpIndexAbutton.firstChild.textContent = "jump";
     jumpIndexA.style.display = "none";
   }
-  if (key === 32 || key === 13) {
+  if ((key === 32 || key === 13) && e.target.id === "jumpIndexA-button") {
     window.showjumpIndexA(e);
-    if (e.target.id === "jumpIndexA-button") {
-      e.preventDefault();
-      e.stopPropagation();
-      e.returnValue = false;
-      e.cancelBubble = true;
-      return false;
-    }
+    e.preventDefault();
+    e.stopPropagation();
+    e.returnValue = false;
+    e.cancelBubble = true;
+    return false;
   }
 }, true);
 function showjumpIndexA(event) {
   if (jumpIndexA.style.display === "block") {
     jumpIndexA.style.display = "none";
     jumpIndexAbutton.firstChild.textContent = "jump";
-  } else {
+  } else if (event.target.id = "jumpIndexA-button") {
     jumpIndexA.style.display = "block";
     jumpIndexAbutton.firstChild.textContent = "(ESC to close)";
   }

Received on Monday, 9 May 2011 05:10:36 UTC