Introduce ctrl+alt+o keybinding to open remote menu (#173850)

* Introduce `shift+r` keybinding to open remote menu

* Switch to `ctrl+alt+` (mirroring `ctrl+o` for open file/folder)
This commit is contained in:
Joyce Er 2023-02-08 19:55:31 +00:00 committed by GitHub
parent a987fee52e
commit 4aa26d05f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,8 @@ import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/b
import { ViewContainerLocation } from 'vs/workbench/common/views';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { WorkbenchActionExecutedClassification, WorkbenchActionExecutedEvent } from 'vs/base/common/actions';
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
type ActionGroup = [string, Array<MenuItemAction | SubmenuItemAction>];
export class RemoteStatusIndicator extends Disposable implements IWorkbenchContribution {
@ -112,6 +114,10 @@ export class RemoteStatusIndicator extends Disposable implements IWorkbenchContr
category,
title: { value: nls.localize('remote.showMenu', "Show Remote Menu"), original: 'Show Remote Menu' },
f1: true,
keybinding: {
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyO,
}
});
}
run = () => that.showRemoteMenu();