From ae65ec97d6787871784f1faa5cd06ffb38ec8e34 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Tue, 14 Jul 2026 11:45:43 +0200 Subject: [PATCH] fix(shortcut): correct shortcut to delete --- .../src/features/rundown/rundown-event/RundownEvent.tsx | 6 +++--- .../src/features/rundown/rundown-group/RundownGroup.tsx | 4 ++-- .../features/rundown/rundown-milestone/RundownMilestone.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx b/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx index d7496c016..aea2c4ef2 100644 --- a/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx +++ b/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx @@ -18,7 +18,7 @@ import { TbFlagFilled, TbListNumbers } from 'react-icons/tb'; import { useEntryActionsContext } from '../../../common/context/EntryActionsContext'; import { useContextMenu } from '../../../common/hooks/useContextMenu'; import { useEntryCopy } from '../../../common/stores/entryCopyStore'; -import { deviceMod } from '../../../common/utils/deviceUtils'; +import { deviceAlt, deviceMod } from '../../../common/utils/deviceUtils'; import { cx, getAccessibleColour } from '../../../common/utils/styleUtils'; import { useRenumberCuesDialogStore } from '../renumber-cues-dialog/RenumberCuesDialog'; import { useEventIdSwapping } from '../useEventIdSwapping'; @@ -156,7 +156,7 @@ export default function RundownEvent({ type: 'item', label: 'Delete', icon: IoTrash, - shortcut: `${deviceMod}+Del`, + shortcut: `${deviceAlt}+Backspace`, onClick: () => { clearSelectedEvents(); deleteEntry(Array.from(selectedEvents)); @@ -202,7 +202,7 @@ export default function RundownEvent({ type: 'item', label: 'Delete', icon: IoTrash, - shortcut: `${deviceMod}+Del`, + shortcut: `${deviceAlt}+Backspace`, onClick: () => { deleteEntry([eventId]); unselect(eventId); diff --git a/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx b/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx index cd746b2ce..69cc3f0ce 100644 --- a/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx +++ b/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx @@ -18,7 +18,7 @@ import Tag from '../../../common/components/tag/Tag'; import { useEntryActionsContext } from '../../../common/context/EntryActionsContext'; import { useContextMenu } from '../../../common/hooks/useContextMenu'; import { useEntryCopy } from '../../../common/stores/entryCopyStore'; -import { deviceMod } from '../../../common/utils/deviceUtils'; +import { deviceAlt, deviceMod } from '../../../common/utils/deviceUtils'; import { getOffsetState } from '../../../common/utils/offset'; import { cx, getAccessibleColour } from '../../../common/utils/styleUtils'; import { formatDuration, formatTime } from '../../../common/utils/time'; @@ -66,7 +66,7 @@ export default function RundownGroup({ data, hasCursor, collapsed, onCollapse }: type: 'item', label: 'Delete Group', icon: IoTrash, - shortcut: `${deviceMod}+Del`, + shortcut: `${deviceAlt}+Backspace`, onClick: () => deleteEntry([data.id]), }, ]); diff --git a/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx b/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx index 35516f35b..83256ea38 100644 --- a/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx +++ b/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx @@ -9,7 +9,7 @@ import useReactiveTextInput from '../../../common/components/input/text-input/us import { useEntryActionsContext } from '../../../common/context/EntryActionsContext'; import { useContextMenu } from '../../../common/hooks/useContextMenu'; import { useEntryCopy } from '../../../common/stores/entryCopyStore'; -import { deviceMod } from '../../../common/utils/deviceUtils'; +import { deviceAlt } from '../../../common/utils/deviceUtils'; import { cx, getAccessibleColour } from '../../../common/utils/styleUtils'; import { useEventSelection } from '../useEventSelection'; @@ -38,7 +38,7 @@ export default function RundownMilestone({ colour, cue, entryId, hasCursor, titl type: 'item', label: 'Delete', icon: IoTrash, - shortcut: `${deviceMod}+Del`, + shortcut: `${deviceAlt}+Backspace`, onClick: () => deleteEntry([entryId]), }, ]);