docs(shortcuts): show platform-aware delete key in keyboard shortcuts panel

This commit is contained in:
kolaente 2026-04-09 09:34:52 +02:00 committed by kolaente
parent cee2babc58
commit e7bc5a31e4
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import {isAppleDevice} from '@/helpers/isAppleDevice'
const ctrl = isAppleDevice() ? '⌘' : 'ctrl'
const reminderModifier = isAppleDevice() ? 'shift' : 'alt'
const deleteKey = isAppleDevice() ? 'backspace' : 'delete'
export interface Shortcut {
title: string
@ -195,7 +196,7 @@ export const KEYBOARD_SHORTCUTS: ShortcutGroup[] = [
},
{
title: 'keyboardShortcuts.task.delete',
keys: ['shift', 'delete'],
keys: [deleteKey],
},
{
title: 'keyboardShortcuts.task.favorite',