(position: "before" | "after")
| 391 | } |
| 392 | |
| 393 | async function handleSplitVertical(position: "before" | "after") { |
| 394 | const layoutModel = getLayoutModelForStaticTab(); |
| 395 | const focusedNode = globalStore.get(layoutModel.focusedNode); |
| 396 | if (focusedNode == null) { |
| 397 | return; |
| 398 | } |
| 399 | const blockDef = getDefaultNewBlockDef(); |
| 400 | await createBlockSplitVertically(blockDef, focusedNode.data.blockId, position); |
| 401 | } |
| 402 | |
| 403 | let lastHandledEvent: KeyboardEvent | null = null; |
| 404 |
no test coverage detected