Skip to content

Commit 4676eae

Browse files
author
Loïc Mangeonjean
committed
fix: wrong command
1 parent a39d289 commit 4676eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ export function mapClipboard (
516516
weight: 1000,
517517
handler: () => {
518518
copiedText = editor.getModel()!.getValueInRange(editor.getSelection()!)
519-
document.execCommand('copy')
519+
document.execCommand('cut')
520520
},
521521
when: ContextKeyExpr.equals('editorId', editor.getId()),
522522
primary: monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyX

0 commit comments

Comments
 (0)