mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-18 02:15:56 +01:00
Fixed hijacking of browser search
This commit is contained in:
parent
a54f57affc
commit
77e972753c
File diff suppressed because one or more lines are too long
3
material/assets/javascripts/application-ad1183cb07.js
Normal file
3
material/assets/javascripts/application-ad1183cb07.js
Normal file
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-0b7df094bf.js"></script>
|
||||
<script src="{{ base_url }}/assets/javascripts/application-ad1183cb07.js"></script>
|
||||
<script>app.initialize({url:{base:"{{ base_url }}"}})</script>
|
||||
{% for path in extra_javascript %}
|
||||
<script src="{{ path }}"></script>
|
||||
|
@ -224,6 +224,10 @@ function initialize(config) { // eslint-disable-line func-style
|
||||
if (!(query instanceof HTMLInputElement))
|
||||
throw new ReferenceError
|
||||
|
||||
/* Abort if meta key (macOS) or ctrl key (Windows) is pressed */
|
||||
if (ev.metaKey || ev.ctrlKey)
|
||||
return
|
||||
|
||||
/* Search is open */
|
||||
if (toggle.checked) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user