input: add focus split directional commands to command palette

This commit is contained in:
Mitchell Hashimoto
2025-06-05 07:09:46 -07:00
parent 1966dfdef7
commit c40ac6b785
2 changed files with 37 additions and 3 deletions

View File

@@ -447,7 +447,7 @@ class BaseTerminalController: NSWindowController,
case .left: focusDirection = .spatial(.left)
case .right: focusDirection = .spatial(.right)
}
// Find the node for the target surface
guard let targetNode = surfaceTree.root?.node(view: target) else { return }
@@ -462,7 +462,9 @@ class BaseTerminalController: NSWindowController,
}
// Move focus to the next surface
Ghostty.moveFocus(to: nextSurface, from: target)
DispatchQueue.main.async {
Ghostty.moveFocus(to: nextSurface, from: target)
}
}
@objc private func ghosttyDidToggleSplitZoom(_ notification: Notification) {