Skip to content

Commit

Permalink
extensions input: use synthetic focus
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jul 1, 2016
1 parent 4e30275 commit 6f33253
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { domEvent } from 'vs/base/browser/event';
import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
import { KeyCode } from 'vs/base/common/keyCodes';
import { Viewlet } from 'vs/workbench/browser/viewlet';
import { append, emmet as $ } from 'vs/base/browser/dom';
import { append, emmet as $, addStandardDisposableListener, EventType, addClass, removeClass } from 'vs/base/browser/dom';
import { IPager, PagedModel } from 'vs/base/common/paging';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { PagedList } from 'vs/base/browser/ui/list/listPaging';
Expand Down Expand Up @@ -64,6 +64,8 @@ export class ExtensionsViewlet extends Viewlet implements IExtensionsViewlet {

this.searchBox = append(header, $<HTMLInputElement>('input.search-box'));
this.searchBox.placeholder = localize('searchExtensions', "Search Extensions in Marketplace");
this.disposables.push(addStandardDisposableListener(this.searchBox, EventType.FOCUS, () => addClass(this.searchBox, 'synthetic-focus')));
this.disposables.push(addStandardDisposableListener(this.searchBox, EventType.BLUR, () => removeClass(this.searchBox, 'synthetic-focus')));
this.extensionsBox = append(this.root, $('.extensions'));

const delegate = new Delegate();
Expand Down

0 comments on commit 6f33253

Please sign in to comment.