docs(shortcuts): show platform-aware delete key in keyboard shortcuts panel
This commit is contained in:
parent
cee2babc58
commit
e7bc5a31e4
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue