import { injectable, inject, postConstruct } from 'inversify'; import { ContextKeyService, ContextKey } from '@gedit/application-common/lib/browser'; @injectable() export class PlaygroundContextKeyService { @inject(ContextKeyService) protected readonly contextKeyService: ContextKeyService; protected _playgroundFocus: ContextKey; get playgroundFocus(): ContextKey { return this._playgroundFocus; } @postConstruct() protected init(): void { this._playgroundFocus = this.contextKeyService.createKey('playgroundFocus', false); } }