Parcourir la source

restored assigning focus

Jaume Sanchez il y a 9 ans
Parent
commit
623388ed35
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      examples/index.html

+ 1 - 0
examples/index.html

@@ -341,6 +341,7 @@
 			links[ file ].className = 'link selected';
 
 			window.location.hash = file;
+			viewer.focus();
 
 			button.style.display = '';
 			panel.classList.toggle( 'collapsed' );