mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
search: fix comments #409
This commit is contained in:
parent
2574cb8340
commit
c84ba71c2c
3 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
7.1.1+28fce6b04c414523280c53ee02f9f3a94d9d23da
|
7.1.1+2574cb83408f0b6052262980adb20f291c16edd8
|
|
@ -205,7 +205,7 @@ function initSearch(){
|
||||||
var input = document.querySelector('#R-search-by-detail');
|
var input = document.querySelector('#R-search-by-detail');
|
||||||
if( input ){
|
if( input ){
|
||||||
input.addEventListener( 'keydown', function(event) {
|
input.addEventListener( 'keydown', function(event) {
|
||||||
// if we are pressing ESC in the search-by-detail our focus will
|
// if we are pressing ESC in the searchdetail our focus will
|
||||||
// be stolen by the other event handlers, so we have to refocus
|
// be stolen by the other event handlers, so we have to refocus
|
||||||
// here after a short while
|
// here after a short while
|
||||||
if (event.key == "Escape") {
|
if (event.key == "Escape") {
|
||||||
|
|
|
@ -1531,7 +1531,7 @@ function searchInputHandler( value ){
|
||||||
}
|
}
|
||||||
|
|
||||||
function initSearch() {
|
function initSearch() {
|
||||||
// sync input/escape between searchbox and executeSearch
|
// sync input/escape between searchbox and searchdetail
|
||||||
var inputs = document.querySelectorAll( 'input.search-by' );
|
var inputs = document.querySelectorAll( 'input.search-by' );
|
||||||
inputs.forEach( function( e ){
|
inputs.forEach( function( e ){
|
||||||
e.addEventListener( 'keydown', function( event ){
|
e.addEventListener( 'keydown', function( event ){
|
||||||
|
|
Loading…
Reference in a new issue