(e: KeyboardEvent)
| 258 | } |
| 259 | |
| 260 | _onkeydown(e: KeyboardEvent) { |
| 261 | if (isEnter(e)) { |
| 262 | this._selectItem(e); |
| 263 | } else if (isSpace(e)) { |
| 264 | e.preventDefault(); // Prevent scrolling |
| 265 | this._isSpacePressed = true; |
| 266 | } else if (isShift(e) || isEscape(e)) { |
| 267 | this._cancelAction = true; // Set the flag to cancel the action |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | _onkeyup(e: KeyboardEvent) { |
| 272 | const isSpaceKey = isSpace(e); |
nothing calls this directly
no test coverage detected