Skip to content

fix(editor): give Mod+Shift+K back to Delete Line - #825

Merged
PathGao merged 1 commit into
masterfrom
fix/restore-delete-line
Sep 22, 2026
Merged

PathGao merged 1 commit into
masterfrom
fix/restore-delete-line

Conversation

@PathGao

@PathGao PathGao commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Closes #821, reported by @salvapinyol.

#652 removed Monaco's default Mod+Shift+K (editor.action.deleteLines) with a --prefixed keybinding rule. The hazard it guarded against was Mod+K Shift+R (Delete Row) sitting one slip away. That chord and the whole Mod+K namespace went away in the same PR, so the rule no longer protected anything. This drops the rule, so the key works again on every platform: Cmd+Shift+K on macOS, Ctrl+Shift+K elsewhere.

The old test asserted the removal. It now asserts Editor.svelte carries no -editor.action.deleteLines rule. Putting the rule back turns it red. Nothing of ours claiming the chord is still caught by monacoChordOwnership.spec.ts.

npm test 1034 pass, vitest 445 pass, npm run check 0 errors. Not tried by hand on Windows or Linux.

#652 removed Monaco's Delete Line key because the old Mod+K Shift+R
(Delete Row) chord sat one slip away from it. That chord and the whole
Mod+K namespace are gone, so the removal guarded nothing, and users
coming from VS Code expect the key (#821). Restored on every platform:
Cmd+Shift+K on macOS, Ctrl+Shift+K elsewhere.

The test now asserts the removal rule stays out; chord ownership is
still covered by monacoChordOwnership.spec.ts.
@PathGao
PathGao merged commit 57cf450 into master Sep 22, 2026
4 checks passed
@PathGao
PathGao deleted the fix/restore-delete-line branch September 22, 2026 22:04
@PathGao PathGao mentioned this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shortcut to delete lines in Windows

1 participant