Skip to content

Commit

Permalink
Merge pull request #65968 from anirudhrb/KeybindingsIconDisappearsFix
Browse files Browse the repository at this point in the history
Fixed issue 65204: open keybindings icon disappears
  • Loading branch information
sandy081 committed Jan 4, 2019
2 parents 51563e0 + b6f6156 commit 00e9ae6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
this.keybindingsEditorContextKey.set(true);
return super.setInput(input, options, token)
.then(() => this.render(options && options.preserveFocus, token));
}
Expand Down

0 comments on commit 00e9ae6

Please sign in to comment.