# Navegação por teclado atrapalha o menu de pesquisa

**URL:** <https://meta.discourse.org/t/keyboard-navigation-messes-up-the-search-menu/285405>\
**Category:** Bug\
**Created:** [Novembro 14, 2023, 9:16am UTC](https://meta.discourse.org/t/keyboard-navigation-messes-up-the-search-menu/285405 "2023-11-14T09:16:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)\
**Post date:** [Novembro 15, 2023, 6:01pm UTC](https://meta.discourse.org/t/keyboard-navigation-messes-up-the-search-menu/285405/5 "2023-11-15T18:01:55Z")

</div>

Isso será corrigido no menu de pesquisa do glimmer via

> <https://github.com/discourse/discourse/pull/24393>
>
> Raised in https://meta.discourse.org/t/keyboard-navigation-messes-up-the-search-…menu/285405
> 
> We were incorrectly accessing the highlighted search result target's href which caused issues when navigating the topic list (eg /latest) with \*\*j / k\*\* and then immediately after accessing the search menu and navigating to and selecting a search result with the keyboard.  
> 
> \### Current Behavior
> Hitting enter on a search result redirects to the href of the topic in the topic list that was previously highlighted.
> 
> \### Expected Behavior
> Hitting enter on a search result redirects to the href of the highlighted search result.

Também adicionarei uma correção para o menu de pesquisa de widgets, pois é bem simples.

---

_[View the full topic](https://meta.discourse.org/t/keyboard-navigation-messes-up-the-search-menu/285405)._
