diff options
Diffstat (limited to 'src/vs/base/parts/quickopen/browser/quickOpenWidget.ts')
-rw-r--r-- | src/vs/base/parts/quickopen/browser/quickOpenWidget.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vs/base/parts/quickopen/browser/quickOpenWidget.ts b/src/vs/base/parts/quickopen/browser/quickOpenWidget.ts index 5018c59b31b..6a0ed9e9a70 100644 --- a/src/vs/base/parts/quickopen/browser/quickOpenWidget.ts +++ b/src/vs/base/parts/quickopen/browser/quickOpenWidget.ts @@ -8,7 +8,6 @@ import 'vs/css!./quickopen'; import nls = require('vs/nls'); import { TPromise } from 'vs/base/common/winjs.base'; import platform = require('vs/base/common/platform'); -import { EventType } from 'vs/base/common/events'; import types = require('vs/base/common/types'); import errors = require('vs/base/common/errors'); import { IQuickNavigateConfiguration, IAutoFocus, IEntryRunContext, IModel, Mode } from 'vs/base/parts/quickopen/common/quickOpen'; @@ -251,11 +250,11 @@ export class QuickOpenWidget implements IModelProvider { this.treeElement = this.tree.getHTMLElement(); // Handle Focus and Selection event - this.toUnbind.push(this.tree.addListener(EventType.FOCUS, (event: IFocusEvent) => { + this.toUnbind.push(this.tree.onDidChangeFocus((event: IFocusEvent) => { this.elementFocused(event.focus, event); })); - this.toUnbind.push(this.tree.addListener(EventType.SELECTION, (event: ISelectionEvent) => { + this.toUnbind.push(this.tree.onDidChangeSelection((event: ISelectionEvent) => { if (event.selection && event.selection.length > 0) { this.elementSelected(event.selection[0], event); } |