diff --git a/src/vs/workbench/parts/preferences/browser/keybindingsEditor.ts b/src/vs/workbench/parts/preferences/browser/keybindingsEditor.ts index b896c8eed0a86..62bc3e3650584 100644 --- a/src/vs/workbench/parts/preferences/browser/keybindingsEditor.ts +++ b/src/vs/workbench/parts/preferences/browser/keybindingsEditor.ts @@ -111,13 +111,10 @@ export class KeybindingsEditor extends BaseEditor implements IKeybindingsEditor this.createOverlayContainer(keybindingsEditorElement); this.createHeader(keybindingsEditorElement); this.createBody(keybindingsEditorElement); - - const focusTracker = this._register(DOM.trackFocus(parent)); - this._register(focusTracker.onDidFocus(() => this.keybindingsEditorContextKey.set(true))); - this._register(focusTracker.onDidBlur(() => this.keybindingsEditorContextKey.reset())); } setInput(input: KeybindingsEditorInput, options: EditorOptions, token: CancellationToken): Promise { + this.keybindingsEditorContextKey.set(true); return super.setInput(input, options, token) .then(() => this.render(options && options.preserveFocus, token)); }