Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2332 from adobe/nj/quick-open-bug
Browse files Browse the repository at this point in the history
Forgot to fix up other callers to functions with changed signature - fixes bug when hitting Enter after selecting > 1st Quick Open item with arrows
  • Loading branch information
peterflynn committed Dec 12, 2012
2 parents 00c5e6d + c8eefd5 commit 9738bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/search/QuickOpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ define(function (require, exports, module) {
/**
* Defines API for new QuickOpen plug-ins
*/
function QuickOpenPlugin(name, fileTypes, done, search, match, itemFocus, itemSelect, resultsFormatter) {
function QuickOpenPlugin(name, fileTypes, done, search, match, itemFocus, itemSelect, resultsFormatter) {
this.name = name;
this.fileTypes = fileTypes;
this.done = done;
Expand Down Expand Up @@ -332,7 +332,7 @@ define(function (require, exports, module) {
}

if ($(".smart_autocomplete_highlight").length === 0) {
this._handleItemFocus($(".smart_autocomplete_container > li:first-child").get(0));
this._handleItemFocus(null, $(".smart_autocomplete_container > li:first-child").get(0));
}
};

Expand Down Expand Up @@ -362,7 +362,7 @@ define(function (require, exports, module) {
this._close();

} else if (e.keyCode === KeyEvent.DOM_VK_RETURN) {
this._handleItemSelect($(".smart_autocomplete_highlight").get(0));
this._handleItemSelect(null, $(".smart_autocomplete_highlight").get(0));
}

}
Expand Down

0 comments on commit 9738bd7

Please sign in to comment.