From 645bf5e377dbfe1d670f07a8e8fb9db8edba554a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 05:52:56 +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 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..586c3ba 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -394,6 +394,10 @@ } if (e.key === 'Escape' && isInput) { + if (active.value && active.matches && active.matches('[data-example-search], [data-change-search], input[type="search"]')) { + active.value = ''; + active.dispatchEvent(new Event('input', { bubbles: true })); + } active.blur(); } } catch (err) {}