Skip to content

Commit

Permalink
fix: wrong command
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Feb 27, 2024
1 parent a39d289 commit 4676eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export function mapClipboard (
weight: 1000,
handler: () => {
copiedText = editor.getModel()!.getValueInRange(editor.getSelection()!)
document.execCommand('copy')
document.execCommand('cut')
},
when: ContextKeyExpr.equals('editorId', editor.getId()),
primary: monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyX
Expand Down

0 comments on commit 4676eae

Please sign in to comment.