Skip to content

Commit

Permalink
explorer: only enable paste file when file is copied
Browse files Browse the repository at this point in the history
fixes #41192
  • Loading branch information
isidorn committed Jan 8, 2018
1 parent 7c83321 commit 7c6ef65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const PASTE_FILE_ID = 'filesExplorer.paste';
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: PASTE_FILE_ID,
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(explorerCommandsWeightBonus),
when: FilesExplorerFocusCondition,
when: ContextKeyExpr.and(FilesExplorerFocusCondition, FileCopiedContext),
primary: KeyMod.CtrlCmd | KeyCode.KEY_V,
handler: pasteFileHandler
});
Expand Down

0 comments on commit 7c6ef65

Please sign in to comment.