Viewing 1 replies (of 1 total)
  • Thread Starter Kirill Belotserkovskiy

    (@steelinside)

    Ok, friend of mine resolved this problem.
    You need to find full-screen-search.js in plugin folder and add following code:

    $(document).keydown(function(event) {
            if (event.keyCode == 27) {
                event.preventDefault();
                $( '#full-screen-search' ).removeClass( 'open' );
            }
        });
    
        $( '#full-screen-search' ).click(function(event) {
            if (event.target == $( '#full-screen-search-form' ).get(0)) {
                event.preventDefault();
                $( '#full-screen-search' ).removeClass( 'open' );
            }
    	});

    right after

    $( '#full-screen-search' ).removeClass( 'open' );
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Close on Esc’ is closed to new replies.