This commit is contained in:
isidor 2021-06-01 15:38:04 +02:00
parent e7b775adeb
commit a476c9d4f0
No known key found for this signature in database
GPG key ID: F9280366A8370105

View file

@ -112,7 +112,7 @@ const CUT_FILE_ID = 'filesExplorer.cut';
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: CUT_FILE_ID,
weight: KeybindingWeight.WorkbenchContrib + explorerCommandsWeightBonus,
when: ContextKeyExpr.and(FilesExplorerFocusCondition, ExplorerRootContext.toNegated()),
when: ContextKeyExpr.and(FilesExplorerFocusCondition, ExplorerRootContext.toNegated(), ExplorerResourceNotReadonlyContext),
primary: KeyMod.CtrlCmd | KeyCode.KEY_X,
handler: cutFileHandler,
});