mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: focus search input with keyboard
This commit is contained in:
parent
c69b750730
commit
07ae64e001
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue