mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
terminal split bug
This commit is contained in:
@@ -469,7 +469,7 @@ export default function TerminalPane({
|
||||
root: container,
|
||||
createInitialPane: false,
|
||||
autoInit: false,
|
||||
shortcuts: { enabled: true },
|
||||
shortcuts: { enabled: false },
|
||||
defaultContextMenu: false,
|
||||
appOptions: ({ id }) => {
|
||||
const onExit = (): void => {
|
||||
@@ -671,6 +671,15 @@ export default function TerminalPane({
|
||||
toggleExpandPane(pane.id)
|
||||
return
|
||||
}
|
||||
|
||||
// Cmd+D / Cmd+Shift+D split the active pane in the focused tab only.
|
||||
if (e.key.toLowerCase() === 'd') {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
const pane = restty.getActivePane() ?? restty.getPanes()[0]
|
||||
if (!pane) return
|
||||
restty.splitPane(pane.id, e.shiftKey ? 'horizontal' : 'vertical')
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('keydown', onKeyDown, { capture: true })
|
||||
|
||||
Reference in New Issue
Block a user