From 2b01ee75f8e73b2a6c2a2e332a6e744f8c05c365 Mon Sep 17 00:00:00 2001 From: Rajdeep Chandra Date: Tue, 24 Sep 2024 21:10:45 +0530 Subject: [PATCH] chore(breadcrumbs): attached keydown event to the breadcrumb link --- packages/breadcrumbs/src/BreadcrumbItem.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/breadcrumbs/src/BreadcrumbItem.ts b/packages/breadcrumbs/src/BreadcrumbItem.ts index 9b01095101..1850931135 100644 --- a/packages/breadcrumbs/src/BreadcrumbItem.ts +++ b/packages/breadcrumbs/src/BreadcrumbItem.ts @@ -82,17 +82,22 @@ export class BreadcrumbItem extends LikeAnchor(Focusable) { } } + protected handleKeyDown(event: KeyboardEvent): void { + if (event.key === 'Enter' || event.keyCode === 13) { + this.handleClick(event); + } + } + protected renderLink(): TemplateResult { return html`