From bef02dcafabded39afbe788ed3c62735be15f981 Mon Sep 17 00:00:00 2001 From: Dennis Sen Date: Mon, 16 Sep 2024 10:34:04 +0200 Subject: [PATCH 1/2] allow selection escape with escape button --- packages/plugins/AddressSearch/CHANGELOG.md | 1 + packages/plugins/AddressSearch/src/components/Results.vue | 3 ++- packages/plugins/AddressSearch/src/store/actions.ts | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/plugins/AddressSearch/CHANGELOG.md b/packages/plugins/AddressSearch/CHANGELOG.md index 2f6231781..f11705b23 100644 --- a/packages/plugins/AddressSearch/CHANGELOG.md +++ b/packages/plugins/AddressSearch/CHANGELOG.md @@ -9,6 +9,7 @@ - Feature: There is now a new optional configuration parameter `searchMethods.queryParameters.likeFilterAttributes` for the WfsSearch that allows to add custom key/value pairs which are mapped to attributes of the like filter operator. - Feature: `AddressSearchState`, `AddressSearchGetters`, and `MpApiParameters` types have been additionally exposed as root export since using packages frequently rely on them. - Feature: When using the search type `mpapi`, a second search using a wildcard is now being triggered when the first search yielded no results. +- Feature: When navigating through the search results by keyboard, pressing `Escape` will now result in closing the available results. Browser interactions on `Escape` may take precedence (i.e. in fullscreen mode, the browser will exit fullscreen mode instead of letting us use the input). - Fix: Adjust documentation and types to properly describe optionality of configuration parameters. - Fix: Use correct getter for `minLength`. - Fix: `SearchResultSymbols` has been additionally exposed as root export since using packages frequently rely on it. diff --git a/packages/plugins/AddressSearch/src/components/Results.vue b/packages/plugins/AddressSearch/src/components/Results.vue index 1ab83a419..98efc708f 100644 --- a/packages/plugins/AddressSearch/src/components/Results.vue +++ b/packages/plugins/AddressSearch/src/components/Results.vue @@ -7,6 +7,7 @@ :max-height="maxHeight" :ripple="false" tabindex="-1" + @keydown.escape.prevent.stop="escapeSelection" >