Triggers the sort on this sort header and removes the indicator hint.
()
| 171 | |
| 172 | /** Triggers the sort on this sort header and removes the indicator hint. */ |
| 173 | _toggleOnInteraction() { |
| 174 | if (!this._isDisabled()) { |
| 175 | const wasSorted = this._isSorted(); |
| 176 | const prevDirection = this._sort.direction; |
| 177 | this._sort.sort(this); |
| 178 | this._recentlyCleared.set(wasSorted && !this._isSorted() ? prevDirection : null); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | _handleKeydown(event: KeyboardEvent) { |
| 183 | if (event.keyCode === SPACE || event.keyCode === ENTER) { |
no test coverage detected