mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-31 19:15:17 +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">
|
<SidebarMenuItem className="group/file-item">
|
||||||
<SidebarMenuButton
|
<SidebarMenuButton
|
||||||
isActive={isSelected}
|
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">
|
<div className="flex w-full items-center gap-1 min-w-0">
|
||||||
<span className="min-w-0 flex-1 truncate">{item.name}</span>
|
<span className="min-w-0 flex-1 truncate">{item.name}</span>
|
||||||
|
|
@ -1185,7 +1191,13 @@ function TasksSection({
|
||||||
<ContextMenuTrigger asChild>
|
<ContextMenuTrigger asChild>
|
||||||
<SidebarMenuButton
|
<SidebarMenuButton
|
||||||
isActive={currentRunId === run.id}
|
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">
|
<div className="flex w-full items-center gap-2 min-w-0">
|
||||||
{processingRunIds?.has(run.id) ? (
|
{processingRunIds?.has(run.id) ? (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue