(e: KeyboardEvent)
| 226 | } |
| 227 | |
| 228 | onKeyDown(e: KeyboardEvent): void { |
| 229 | this.cancelEvent(e); |
| 230 | |
| 231 | if (e.key === 'Escape') { |
| 232 | this.cancel(); |
| 233 | return; |
| 234 | } |
| 235 | |
| 236 | if (e.key === 'Tab' && !(e.metaKey || e.altKey || e.ctrlKey)) { |
| 237 | if (e.shiftKey) { |
| 238 | this.previous(); |
| 239 | } else { |
| 240 | this.next(); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | if (typeof this.currentDropTarget?.onKeyDown === 'function') { |
| 245 | this.currentDropTarget.onKeyDown(e, this.dragTarget); |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | onKeyUp(e: KeyboardEvent): void { |
| 250 | this.cancelEvent(e); |
no test coverage detected