Skip to content

The agent that grows with you

fix(desktop): show platform Kanban modifier

273-B_L034f484542eb6
diff --git a/apps/desktop/src/plugins/kanban/board.tsx b/apps/desktop/src/plugins/kanban/board.tsx
index 3c4cdd9f979..2124e8dcd05 100644
--- a/apps/desktop/src/plugins/kanban/board.tsx
+++ b/apps/desktop/src/plugins/kanban/board.tsx
@@ -4,8 +4,8 @@
* header row (count, filter kebab, search, settings, new task — the board
* SWITCHER lives in the titlebar, see board-switcher.tsx), columns in
* BOARD_COLUMNS order, drag-to-move (optimistic, workflow-checked),
- * ⌘-click multi-select with a floating bulk bar, right-click actions, and
- * the detail drawer. Dispatch nudges ride every write (see api.ts).
+ * primary-modifier-click multi-select with a floating bulk bar, right-click
+ * actions, and the detail drawer. Dispatch nudges ride every write (see api.ts).
*/
import {
@@ -30,6 +30,7 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
ErrorState,
+ formatModifierToken,
host,
Input,
Loader,
@@ -309,7 +310,7 @@ function Card({
</ContextMenuItem>
<ContextMenuItem onSelect={() => onToggleSelect(task.id)}>
<Codicon name={selected ? 'close' : 'check-all'} size="0.85rem" />
- {selected ? k.deselect : k.select}
+ {selected ? k.deselect : k.select(formatModifierToken('mod'))}
</ContextMenuItem>
<ContextMenuSeparator />
{columns
diff --git a/apps/desktop/src/plugins/kanban/i18n.ts b/apps/desktop/src/plugins/kanban/i18n.ts
index e751f698c8f..34a64fccbb1 100644
--- a/apps/desktop/src/plugins/kanban/i18n.ts
+++ b/apps/desktop/src/plugins/kanban/i18n.ts
@@ -29,7 +29,7 @@ type KanbanMessages = {
noMatch: string
noTasks: string
open: string
- select: string
+ select: (modifier: string) => string
deselect: string
moveTo: (label: string) => string
delete: string
@@ -217,7 +217,7 @@ const en: KanbanMessages = {
noMatch: 'No tasks match the filters',
noTasks: 'No tasks on this board',
open: 'Open',
- select: 'Select (⌘-click)',
+ select: modifier => `Select (${modifier}-click)`,
deselect: 'Deselect',
moveTo: label => `Move to ${label}`,
delete: 'Delete',
@@ -409,7 +409,7 @@ const ja: KanbanMessages = {
noMatch: 'フィルタに一致するタスクはありません',
noTasks: 'このボードにタスクはありません',
open: '開く',
- select: '選択(⌘クリック)',
+ select: modifier => `選択(${modifier}クリック)`,
deselect: '選択解除',
moveTo: label => `${label} へ移動`,
delete: '削除',
@@ -600,7 +600,7 @@ const zh: KanbanMessages = {
noMatch: '没有符合筛选条件的任务',
noTasks: '此面板暂无任务',
open: '打开',
- select: '选择(⌘点击)',
+ select: modifier => `选择(${modifier}点击)`,
deselect: '取消选择',
moveTo: label => `移动到 ${label}`,
delete: '删除',
@@ -788,7 +788,7 @@ const zhHant: KanbanMessages = {
noMatch: '沒有符合篩選條件的任務',
noTasks: '此面板尚無任務',
open: '開啟',
- select: '選取(⌘點擊)',
+ select: modifier => `選取(${modifier}點擊)`,
deselect: '取消選取',
moveTo: label => `移至 ${label}`,
delete: '刪除',
diff --git a/apps/desktop/src/sdk/index.ts b/apps/desktop/src/sdk/index.ts
index 7d13ada9a37..adf70aa325f 100644
--- a/apps/desktop/src/sdk/index.ts
+++ b/apps/desktop/src/sdk/index.ts
@@ -301,6 +301,7 @@ export { triggerHaptic as haptic } from '@/lib/haptics'
/** The app's lucide icon set (RefreshCw, LayoutDashboard, Activity, …). */
export * as icons from '@/lib/icons'
export { type KeybindContribution, KEYBINDS_AREA } from '@/lib/keybinds/actions'
+export { formatModifierToken } from '@/lib/keybinds/combo'
/** The app's deterministic identity color for a name (profiles, assignees,
* authors) + its translucent tag fill — so plugin-rendered identities read
* the same hue as everywhere else. */