We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72a5cc commit 106f72dCopy full SHA for 106f72d
components/SearchBox.vue
@@ -51,10 +51,6 @@ export default {
51
},
52
mounted () {
53
this.placeholder = this.$site.themeConfig.searchPlaceholder || ''
54
- document.addEventListener('keydown', this.onHotkey)
55
- },
56
- beforeDestroy () {
57
- document.removeEventListener('keydown', this.onHotkey)
58
59
computed: {
60
showSuggestions () {
@@ -114,12 +110,6 @@ export default {
114
110
}
115
111
return '/'
116
112
117
- onHotkey (event) {
118
- if (event.srcElement === document.body) {
119
- this.$refs.input.focus()
120
- event.preventDefault()
121
- }
122
123
113
onUp () {
124
if (this.showSuggestions) {
125
if (this.focusIndex > 0) {
0 commit comments