Skip to content

Commit

Permalink
bring back keybindings for obscure commands
Browse files Browse the repository at this point in the history
fixes #41502
  • Loading branch information
isidorn committed Feb 5, 2018
1 parent c2958b9 commit d7f097c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/vs/workbench/parts/files/electron-browser/fileCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,8 @@ function revealResourcesInOS(resources: URI[], windowsService: IWindowsService,
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: REVEAL_IN_OS_COMMAND_ID,
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
when: undefined,
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyCode.KEY_R),
secondary: [KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KEY_R],
when: ExplorerFocusCondition,
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KEY_R,
win: {
primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KEY_R
},
Expand All @@ -406,7 +405,10 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
revealResourcesInOS(resources, accessor.get(IWindowsService), accessor.get(IMessageService));
}
});
CommandsRegistry.registerCommand({
KeybindingsRegistry.registerCommandAndKeybindingRule({
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
when: undefined,
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyCode.KEY_R),
id: 'workbench.action.files.revealActiveFileInWindows',
handler: (accessor: ServicesAccessor, resource: URI) => {
const editorService = accessor.get(IWorkbenchEditorService);
Expand Down Expand Up @@ -439,7 +441,10 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
}
});

CommandsRegistry.registerCommand({
KeybindingsRegistry.registerCommandAndKeybindingRule({
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
when: undefined,
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyCode.KEY_P),
id: 'workbench.action.files.copyPathOfActiveFile',
handler: (accessor, resource: URI) => {
const editorService = accessor.get(IWorkbenchEditorService);
Expand Down

0 comments on commit d7f097c

Please sign in to comment.