Skip to content

Commit 8bae26e

Browse files
committed
make shortcuts for search friendly to intl keyboard layouts
1 parent 580213f commit 8bae26e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/vendor/docsearch.bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140

141141
function handleShortcuts (e) {
142142
var target = e.target || {}
143-
if (e.ctrlKey && e.key === '<' && target === this.$input[0]) return restoreSearch.call(this)
144-
if (e.altKey || e.shiftKey || target.isContentEditable || 'disabled' in target) return
143+
if (e.altKey || target.isContentEditable || 'disabled' in target) return
144+
if (e.ctrlKey && e.key === '<') return restoreSearch.call(this)
145145
if (e.ctrlKey ? e.key === '/' : e.key === 's') {
146146
this.$input.focus()
147147
e.preventDefault()

0 commit comments

Comments
 (0)