Fixed #10: Invisible header after closing search bar with ESC key

This commit is contained in:
squidfunk 2016-02-25 19:05:53 +01:00
parent 573b74881d
commit 3e508f45f2
6 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
mkdocs-material-0.x.x (2016-xx-xx)
In progress
* Fixed #10: Invisible header after closing search bar with ESC key
mkdocs-material-0.2.0 (2016-02-24)
* Fixed #6: Include multiple color palettes via mkdocs.yml

File diff suppressed because one or more lines are too long

View File

@ -138,7 +138,7 @@
var base_url = '{{ base_url }}';
var repo_id = '{{ repo_id }}';
</script>
<script src="{{ base_url }}/assets/javascripts/application-a10a824a49.js"></script>
<script src="{{ base_url }}/assets/javascripts/application-0c6e4a273e.js"></script>
{% for path in extra_javascript %}
<script src="{{ path }}"></script>
{% endfor %}

View File

@ -1,6 +1,6 @@
{
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico",
"assets/javascripts/application.js": "assets/javascripts/application-a10a824a49.js",
"assets/javascripts/application.js": "assets/javascripts/application-0c6e4a273e.js",
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-4ab42b99fd.js",
"assets/stylesheets/application.css": "assets/stylesheets/application-b64b728552.css",
"assets/stylesheets/palettes.css": "assets/stylesheets/palettes-05ab2406df.css"

View File

@ -373,6 +373,9 @@ document.addEventListener('DOMContentLoaded', function() {
window.addEventListener('keyup', function(e) {
var code = e.keyCode || e.which;
if (code == 27) {
query.blur();
/* Exit locked state */
document.body.classList.remove('toggle-search');
document.body.classList.remove('locked');
toggle.checked = false;