Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/workbench/contrib/list/browser/list.contribution.ts')
-rw-r--r--src/vs/workbench/contrib/list/browser/list.contribution.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/vs/workbench/contrib/list/browser/list.contribution.ts b/src/vs/workbench/contrib/list/browser/list.contribution.ts
index f396bf16f84..a2347a33886 100644
--- a/src/vs/workbench/contrib/list/browser/list.contribution.ts
+++ b/src/vs/workbench/contrib/list/browser/list.contribution.ts
@@ -3,22 +3,20 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
-import { IContextKeyService, RawContextKey } from 'vs/platform/contextkey/common/contextkey';
-import { WorkbenchListAutomaticKeyboardNavigationKey } from 'vs/platform/list/browser/listService';
+import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
import { Registry } from 'vs/platform/registry/common/platform';
import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions, IWorkbenchContribution } from 'vs/workbench/common/contributions';
import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle';
-export const WorkbenchListSupportsKeyboardNavigation = new RawContextKey<boolean>('listSupportsKeyboardNavigation', true);
-export const WorkbenchListAutomaticKeyboardNavigation = new RawContextKey<boolean>(WorkbenchListAutomaticKeyboardNavigationKey, true);
-
export class ListContext implements IWorkbenchContribution {
constructor(
@IContextKeyService contextKeyService: IContextKeyService
) {
- WorkbenchListSupportsKeyboardNavigation.bindTo(contextKeyService);
- WorkbenchListAutomaticKeyboardNavigation.bindTo(contextKeyService);
+ contextKeyService.createKey<boolean>('listSupportsTypeNavigation', true);
+
+ // @deprecated in favor of listSupportsTypeNavigation
+ contextKeyService.createKey('listSupportsKeyboardNavigation', true);
}
}