https://avo.cool logo
Hi all, Is there a way to overwrite the default...
# avo-2
s
Hi all, Is there a way to overwrite the default behavior when clicking Enter key in the Search Bar which currently cancels the search? Typically, pressing Enter in a search bar initiates the search or redirects to a search results page so this ux seems a bit counter intuitive. https://cdn.discordapp.com/attachments/740893011994738751/1328711356387426435/image.png?ex=6787b261&is=678660e1&hm=84921829e37f9097ef0b9cd97a9a7ac448560451e9a1b4aa7616070c99a03f64&
m
Thread automatically created by Rashika in #740893011994738751
l
Hello @straight-lion-45603, we aren't assigning any specific functionality to the Enter key, and there likely isn't a straightforward method to override it. However, if overriding were feasible, what behavior would you aim to implement?
s
Thanks @loud-jewelry-99127 I would prefer that pressing Enter either opens a search page, similar to how Google does. Currently, it seems the Enter key selects the cancel button next to the search bar by default, which ends up canceling the search. Another alternative could be to visually highlight the cancel button, so the user knows it's being selected, preventing any surprises when they press Enter. Is there any way to disable the cancel button?