mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Merge pull request #283 from skollro/fix-docsearch-shortcut
Fix docsearch shortcut
This commit is contained in:
commit
0b8f45e445
@ -17,5 +17,6 @@ anchors.add()
|
||||
|
||||
// Add shortcut to search input when pressing the "/" key
|
||||
Mousetrap.bind('/', function (e) {
|
||||
e.preventDefault()
|
||||
document.getElementById('docsearch').focus()
|
||||
}, 'keyup')
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user