From 1b75509ccd4b74155e288306d5ba8857a44f0bef Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 5 Sep 2026 05:44:04 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Enhance=20search=20Es?= =?UTF-8?q?cape=20key=20handling=20and=20clean=20up=20ARIA=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Clear search input values and dispatch input event on Escape key press to reset search results before blurring. - Exclude shortcut hints (/) from aria-label in changelog search input while retaining it in placeholder for screen readers. Co-authored-by: MilakyS <155958485+MilakyS@users.noreply.github.com> --- assets/js/changelog.js | 5 +++-- assets/js/common.js | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/js/changelog.js b/assets/js/changelog.js index 657ada6..ef210ef 100644 --- a/assets/js/changelog.js +++ b/assets/js/changelog.js @@ -94,12 +94,13 @@ function renderHero(hero, stats) { function renderFilters(releases) { const allLabel = window.MKSSiteI18n?.get('filters.all', 'all'); const tags = [allLabel, ...new Set((releases || []).map(item => item.tag).filter(Boolean))]; - const searchPlaceholder = (window.MKSSiteI18n?.get('changelog.search', 'Search changelog...') || 'Search changelog...') + ' (/)'; + const searchLabel = window.MKSSiteI18n?.get('changelog.search', 'Search changelog...') || 'Search changelog...'; + const searchPlaceholder = searchLabel + ' (/)'; return `
- +
${tags.map((tag, index) => `