From 89c9307d0f9512f344382b75f0f6f52ee82b8907 Mon Sep 17 00:00:00 2001 From: Sibin Sabu Date: Fri, 19 Sep 2025 10:57:48 +0530 Subject: [PATCH] fix : updated touchpad --- .../touch-pad-menu/touch-pad-menu.component.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts index a29f920..967e8c8 100755 --- a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts +++ b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.ts @@ -1225,6 +1225,15 @@ export class TouchPadMenuComponent implements OnInit, OnDestroy { return `${label} ${groupStrs.join('-')}${starPart}`; } + // 🔹 NEW RULE: check for "- -" style duplicate groups + if (filteredGroups.length === 2) { + const g1 = filteredGroups[0].map(normalizeToken); + const g2 = filteredGroups[1].map(normalizeToken); + if (g1.join(',') === g2.join(',')) { + return `${label} <<${g1.join(',')}>>${starPart}`; + } + } + const singleTokens = filteredGroups[0] || []; if (singleTokens.length >= 2 && singleTokens.length % 2 === 0) { const half = singleTokens.length / 2; @@ -1477,6 +1486,8 @@ export class TouchPadMenuComponent implements OnInit, OnDestroy { } //----------------------------------PRINT ENDS HERE ------------------------------------------------------ + + erase() { this.selectionService.clearSelections(); this.resetSelections();