Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chrome doesn't like keypress on Esc, use keyup
  • Loading branch information
gfldex committed Jul 14, 2016
1 parent ca4be04 commit 1fceede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/js/main.js
Expand Up @@ -66,7 +66,7 @@ function setup_collapsible_TOC() {
});
}

document.addEventListener("keypress", function(evt){
document.addEventListener("keyup", function(evt){
if(evt.key == "Escape"){$('#query').focus()}
});

Expand Down

0 comments on commit 1fceede

Please sign in to comment.