(e: KeyboardEvent)
| 247 | } |
| 248 | |
| 249 | onKeyUp(e: KeyboardEvent): void { |
| 250 | this.cancelEvent(e); |
| 251 | |
| 252 | if (e.key === 'Enter') { |
| 253 | if (e.altKey || nodeContains(this.getCurrentActivateButton(), getEventTarget(e) as Node)) { |
| 254 | this.activate(this.currentDropTarget, this.currentDropItem); |
| 255 | } else { |
| 256 | this.drop(); |
| 257 | } |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | getCurrentActivateButton(): FocusableElement | null { |
| 262 | return ( |
no test coverage detected