From f7552a84792ab85aea65153825c7b4ae53826e95 Mon Sep 17 00:00:00 2001 From: karthik Date: Sat, 26 Jul 2025 23:09:23 +0530 Subject: [PATCH] fix : enter and shash enter has better working things (qui, tan,for) --- .../touch-pad-menu.component.html | 19 ++++++++++--------- .../touch-pad-menu.component.ts | 12 +++++++++--- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.html b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.html index 4505602..701dc71 100755 --- a/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.html +++ b/btc-UI/src/app/components/touch-pad-menu/touch-pad-menu.component.html @@ -16,14 +16,15 @@
- + + @@ -96,7 +97,7 @@
- +
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 884439d..9e2675c 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 @@ -1,3 +1,4 @@ +// ... same imports import { Component, Input, OnInit } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SelectionService } from '../selection.service/selection.service'; @@ -162,7 +163,14 @@ export class TouchPadMenuComponent implements OnInit { return this.selectedNumbers.includes(number); } - padEnter() { + // 👉 Changed from padEnter to split into two handlers + onPadEnter() { + if (this.canPrint) { + this.print(); + } + } + + onShashEnter() { if (this.selectedLabel === 'TAN') { if (this.tanGroupStage < 2) { this.tanGroupStage++; @@ -183,8 +191,6 @@ export class TouchPadMenuComponent implements OnInit { this.selectionService.updatePartial({ numbers: [...this.selectedNumbers] }); return; } - } else if (this.canPrint) { - this.print(); } }