From b66421f2ec89105bb6231aadcd5f8a429471fb9f Mon Sep 17 00:00:00 2001 From: callmeroot Date: Wed, 21 Aug 2024 10:57:05 +0530 Subject: [PATCH] updated comment --- lib/KTable/KTableGridItem.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/KTable/KTableGridItem.vue b/lib/KTable/KTableGridItem.vue index 8b9a1bb9c..4179136cf 100644 --- a/lib/KTable/KTableGridItem.vue +++ b/lib/KTable/KTableGridItem.vue @@ -63,13 +63,12 @@ }, methods: { onKeydown(event) { - // Check if the focused element is a button or actionable item + // Ensures that clickable elements within a table cell, such as buttons and links, can be clicked with ENTER key. const focusedElement = event.target; if ( event.key === 'Enter' && (focusedElement.tagName === 'BUTTON' || - focusedElement.tagName === 'A' || - focusedElement.hasAttribute('role')) + focusedElement.tagName === 'A') ) { focusedElement.click(); } else {