From ea58e0822d38759a3787f4a3666257fd2696bc98 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 05:47:52 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20clear=20search=20inpu?= =?UTF-8?q?t=20and=20reset=20filters=20on=20Escape=20key=20press?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: MilakyS <155958485+MilakyS@users.noreply.github.com> --- assets/js/common.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/common.js b/assets/js/common.js index 022a753..5f4e2a5 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -394,6 +394,11 @@ } if (e.key === 'Escape' && isInput) { + var isSearchInput = active.matches && active.matches('[data-example-search], [data-change-search]'); + if (isSearchInput && active.value) { + active.value = ''; + active.dispatchEvent(new Event('input', { bubbles: true })); + } active.blur(); } } catch (err) {}