()
| 166 | } |
| 167 | |
| 168 | private toggleCurrent(): void { |
| 169 | const options = this.currentOptions(); |
| 170 | if (options.length === 0) return; |
| 171 | const opt = options[this.cursor]; |
| 172 | const k = this.key(opt); |
| 173 | |
| 174 | if (this.tab === 'below-input') { |
| 175 | this.selectedBelowInput = this.selectedBelowInput === k ? null : k; |
| 176 | } else { |
| 177 | if (this.selectedOverview.has(k)) { |
| 178 | this.selectedOverview.delete(k); |
| 179 | } else { |
| 180 | this.selectedOverview.add(k); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | this.rebuildList(); |
| 185 | } |
| 186 | |
| 187 | private saveAndClose(): void { |
| 188 | // Map options by key for fast lookup |
no test coverage detected