From a60b307cdecda4adb37e8f4f5befc341457e59a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:07:58 +0300 Subject: [PATCH 1/2] Fixed #14368 - Accordion | TextArea shortcuts are not working when used in Accordion Panels --- src/app/components/accordion/accordion.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/app/components/accordion/accordion.ts b/src/app/components/accordion/accordion.ts index ca348cc3ebe..41a72585c51 100755 --- a/src/app/components/accordion/accordion.ts +++ b/src/app/components/accordion/accordion.ts @@ -443,17 +443,21 @@ export class Accordion implements BlockableUI, AfterContentInit, OnDestroy { case 'ArrowDown': this.onTabArrowDownKey(event); break; - + case 'ArrowUp': this.onTabArrowUpKey(event); break; - + case 'Home': - this.onTabHomeKey(event); + if (!event.shiftKey) { + this.onTabHomeKey(event); + } break; - + case 'End': - this.onTabEndKey(event); + if (!event.shiftKey) { + this.onTabEndKey(event); + } break; } } @@ -622,3 +626,4 @@ export class Accordion implements BlockableUI, AfterContentInit, OnDestroy { declarations: [Accordion, AccordionTab] }) export class AccordionModule {} + From df69ea92df51b79540616ccce4193eff142bf641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:10:23 +0300 Subject: [PATCH 2/2] code format --- src/app/components/accordion/accordion.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/components/accordion/accordion.ts b/src/app/components/accordion/accordion.ts index 41a72585c51..bdb232d0199 100755 --- a/src/app/components/accordion/accordion.ts +++ b/src/app/components/accordion/accordion.ts @@ -443,17 +443,17 @@ export class Accordion implements BlockableUI, AfterContentInit, OnDestroy { case 'ArrowDown': this.onTabArrowDownKey(event); break; - + case 'ArrowUp': this.onTabArrowUpKey(event); break; - + case 'Home': if (!event.shiftKey) { this.onTabHomeKey(event); } break; - + case 'End': if (!event.shiftKey) { this.onTabEndKey(event); @@ -626,4 +626,3 @@ export class Accordion implements BlockableUI, AfterContentInit, OnDestroy { declarations: [Accordion, AccordionTab] }) export class AccordionModule {} -