mirror of
https://github.com/tchartron/blow
synced 2025-02-17 13:48:27 +00:00
update
This commit is contained in:
parent
a135b3279e
commit
61db453fd9
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
// }
|
||||
|
||||
document.onkeydown = function(evt) {
|
||||
evt.stopPropagation()
|
||||
// evt.preventDefault()
|
||||
evt = evt || window.event
|
||||
let isEscape = false
|
||||
let isCmdK = false
|
||||
|
@ -47,6 +47,9 @@ function toggleModal () {
|
|||
modal.classList.toggle('opacity-0')
|
||||
modal.classList.toggle('pointer-events-none')
|
||||
body.classList.toggle('modal-active')
|
||||
if ([...modal.classList].includes('modal-active')) {
|
||||
document.getElementById('search-input').focus()
|
||||
}
|
||||
}
|
||||
|
||||
// function openSearch() {
|
||||
|
|
Loading…
Add table
Reference in a new issue