feat: press enter to open the 1st result #163
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
行为调整,当正在搜索时,回车将直接启动结果中被选中的结果(即第一个结果),而不再是将焦点移到搜索区域。注意,当前实现仍与4/9讨论的预期行为不同,预期是希望搜索过程中也始终显示选中项,即搜索结果区域无焦点时,选中项也有一个近似于hover效果的指示效果的。
未在搜索时的行为不变(即,如果焦点在搜索框但没输入任何关键词就按下回车,此时会将焦点切换到应用区域)。