Skip to content

Commit

Permalink
permantlny delete file when alt pressed in explorer context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jan 5, 2018
1 parent cd99cb2 commit 0a4937e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
handler: moveFileToTrashHandler
});

const DELETE_FILE_ID = 'deleteFile';
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'deleteFile',
id: DELETE_FILE_ID,
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(explorerCommandsWeightBonus),
when: FilesExplorerFocusCondition,
primary: KeyMod.Shift | KeyCode.Delete,
Expand Down Expand Up @@ -421,5 +422,9 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
id: MOVE_FILE_TO_TRASH_ID,
title: MOVE_FILE_TO_TRASH_LABEL
},
alt: {
id: DELETE_FILE_ID,
title: MOVE_FILE_TO_TRASH_LABEL
},
when: ExplorerRootContext.toNegated()
});

0 comments on commit 0a4937e

Please sign in to comment.