Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export function useDayViewShortcuts(config: KeyboardShortcutsConfig) {
handleMigrationNavigation("forward"),
{
ignoreInputs: false,
blurOnTrigger: true,
},
Comment on lines 171 to 173

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve pending title edits before task migration

If the user presses Ctrl+Meta+Arrow* while renaming a task, removing blurOnTrigger here means the input no longer blurs before handleMigrationNavigation calls onMigrateTask. In packages/web/src/views/Day/hooks/tasks/useTaskActions.ts, title edits live only in editingTitle until onInputBlur/Enter commits them, while migrateTask snapshots the task from tasks immediately; that causes the moved task, undo payload, and persisted move to use the stale title and silently drop the in-progress rename. The existing shortcut tests even cover migration while typing, so this path needs to commit the edit before migrating.

Useful? React with 👍 / 👎.

);

Expand All @@ -179,7 +178,6 @@ export function useDayViewShortcuts(config: KeyboardShortcutsConfig) {
handleMigrationNavigation("backward"),
{
ignoreInputs: false,
blurOnTrigger: true,
},
);

Expand Down