fix : box logic for FOR is working

This commit is contained in:
karthik 2025-07-28 13:58:45 +05:30
parent c8bc66d214
commit aa1471e89c
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// ✅ Final SelectionService.ts with strict FOR logic, split from QUI
// ✅ Final SelectionService.ts with strict QUI logic
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@ -82,7 +82,7 @@ export class SelectionService {
} else {
for (const a of group1) {
for (const b of group2) {
combinations++;
if (a !== b) combinations++;
}
}
updated.numbers = [...group1, '-', ...group2];

View File

@ -78,8 +78,13 @@ export class TouchPadMenuComponent implements OnInit {
}
get showShashEnter(): boolean {
const label = this.selectedLabel || '';
const isBoxed = this.isBoxed;
if (['FOR', 'QUI', 'TAN'].includes(label) && isBoxed) {
return false;
}
const specialLabels = ['FOR', 'QUI', 'TAN', 'EXA', 'WSP', 'TRE', 'MJP', 'JKP', '.'];
return specialLabels.includes(this.selectedLabel || '');
return specialLabels.includes(label);
}
get isShashEnterDisabled(): boolean {