fix: focus search input with keyboard

This commit is contained in:
EnixCoda 2020-04-02 22:25:34 +08:00
parent c69b750730
commit 07ae64e001
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 4 additions and 4 deletions

View file

@ -423,15 +423,15 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-
}
.go-to-button {
display: none;
vertical-align: middle;
white-space: nowrap;
background: transparent;
border: none;
padding: 0;
}
&:hover {
&:not(:hover) {
.go-to-button {
display: inline-block;
display: none;
}
}
}

View file

@ -98,7 +98,7 @@ export function focusFileExplorer() {
}
export function focusSearchInput() {
const searchInputSelector = '.search-input'
const searchInputSelector = '.search-input input'
$(searchInputSelector, searchInputElement => {
if (
document.activeElement !== searchInputElement &&