diff --git a/_layouts/website/page.html b/_layouts/website/page.html index 7fb75de..a80617f 100644 --- a/_layouts/website/page.html +++ b/_layouts/website/page.html @@ -90,6 +90,16 @@ window.gitbook.events.bind("page.change", function () { pageChanged(); }); + + var searchInput = document.querySelector('#book-search-input input'); + + if (searchInput) { + searchInput.addEventListener('keyup', function(event) { + if (event.keyCode === 13) { + event.target.blur(); + } + }); + } } function pageChanged() {