fix : shash enter will auto hide accordingly

This commit is contained in:
karthik 2025-08-14 15:52:32 +05:30
parent 7d383587cf
commit 210c2baf4a

View File

@ -213,13 +213,18 @@ export class TouchPadMenuComponent implements OnInit, OnDestroy {
}
get showShashEnter(): boolean {
const label = this.selectedLabel || '';
if (['FOR', 'QUI', 'TAN'].includes(label) && this.isBoxed) {
return false;
}
const specialLabels = ['FOR', 'QUI', 'TAN', 'EXA', 'TRE', 'MJP', 'JKP', '.'];
return specialLabels.includes(label);
const label = this.selectedLabel || '';
if (['FOR', 'QUI', 'TAN'].includes(label) && this.isBoxed) {
return false;
}
const specialLabels = ['FOR', 'QUI', 'TAN', 'EXA', 'TRE', 'MJP', 'JKP', '.'];
if (this.multiLegLabels.includes(label)) {
const maxLegs = this.getMaxLegs(this.currentPool || '');
// Hide Shash Enter if on the final leg
return this.multiLegStage < maxLegs - 1;
}
return specialLabels.includes(label);
}
get isShashEnterDisabled(): boolean {
if (this.selectedLabel === 'TAN') {