From 74c8852233ca9b0e7e5e2c351e72c1ccffab6e1b Mon Sep 17 00:00:00 2001 From: Daniil Fadeev Date: Fri, 23 Jun 2023 14:24:07 +0300 Subject: [PATCH] giphy: Set focus to the query input after clearing it. These changes improve keyboard navigation in the Giphy popover. Fixes: #26096. --- web/src/giphy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/giphy.js b/web/src/giphy.js index 7df11586dc..31451a479a 100644 --- a/web/src/giphy.js +++ b/web/src/giphy.js @@ -214,7 +214,7 @@ export function initialize() { $("body").on("click", "#giphy_search_clear", async (e) => { e.stopPropagation(); - $("#giphy-search-query").val(""); + $("#giphy-search-query").val("").trigger("focus"); await update_grid_with_search_term(); });