mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Fixed broken forms due to search shortcuts
This commit is contained in:
parent
993fb4782c
commit
fce9e77c26
1
material/assets/javascripts/application-b4eb7a00cd.js
Normal file
1
material/assets/javascripts/application-b4eb7a00cd.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -150,7 +150,7 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ base_url }}/assets/javascripts/application-c35428f87f.js"></script>
|
||||
<script src="{{ base_url }}/assets/javascripts/application-b4eb7a00cd.js"></script>
|
||||
{% set languages = lang.t("search.languages").split(",") %}
|
||||
{% if languages | length and languages[0] != "" %}
|
||||
{% set path = base_url + "/assets/javascripts/lunr" %}
|
||||
|
@ -334,8 +334,8 @@ function initialize(config) { // eslint-disable-line func-style
|
||||
return false
|
||||
}
|
||||
|
||||
/* Search is closed */
|
||||
} else {
|
||||
/* Search is closed and we're not inside a form */
|
||||
} else if (document.activeElement && !document.activeElement.form) {
|
||||
|
||||
/* F/S: Open search if not in input field */
|
||||
if (ev.keyCode === 70 || ev.keyCode === 83) {
|
||||
|
Loading…
Reference in New Issue
Block a user