From d9e323d3c68f6d6d49096f5e59a408f82a5836ae Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 06:02:42 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Reset=20search=20inpu?= =?UTF-8?q?ts=20on=20Escape=20key=20press?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clear search query and dispatch input event when pressing Escape on active search input before blurring. Co-authored-by: MilakyS <155958485+MilakyS@users.noreply.github.com> --- assets/js/common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/common.js b/assets/js/common.js index 022a753..8ec0788 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -394,6 +394,10 @@ } if (e.key === 'Escape' && isInput) { + if (active.matches && active.matches('[data-example-search], [data-change-search]') && active.value) { + active.value = ''; + active.dispatchEvent(new Event('input', { bubbles: true })); + } active.blur(); } } catch (err) {}