mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-28 19:05:31 +02:00
added cmd click
This commit is contained in:
parent
e749797fd8
commit
3cab3bae05
1 changed files with 14 additions and 2 deletions
|
|
@ -1039,7 +1039,13 @@ function Tree({
|
|||
<SidebarMenuItem className="group/file-item">
|
||||
<SidebarMenuButton
|
||||
isActive={isSelected}
|
||||
onClick={() => onSelect(item.path, item.kind)}
|
||||
onClick={(e) => {
|
||||
if (e.metaKey && actions.onOpenInNewTab) {
|
||||
actions.onOpenInNewTab(item.path)
|
||||
} else {
|
||||
onSelect(item.path, item.kind)
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div className="flex w-full items-center gap-1 min-w-0">
|
||||
<span className="min-w-0 flex-1 truncate">{item.name}</span>
|
||||
|
|
@ -1185,7 +1191,13 @@ function TasksSection({
|
|||
<ContextMenuTrigger asChild>
|
||||
<SidebarMenuButton
|
||||
isActive={currentRunId === run.id}
|
||||
onClick={() => actions?.onSelectRun(run.id)}
|
||||
onClick={(e) => {
|
||||
if (e.metaKey && actions?.onOpenInNewTab) {
|
||||
actions.onOpenInNewTab(run.id)
|
||||
} else {
|
||||
actions?.onSelectRun(run.id)
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div className="flex w-full items-center gap-2 min-w-0">
|
||||
{processingRunIds?.has(run.id) ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue