diff --git a/apps/common/main/lib/component/Menu.js b/apps/common/main/lib/component/Menu.js index 03e16cc01..580a73e72 100644 --- a/apps/common/main/lib/component/Menu.js +++ b/apps/common/main/lib/component/Menu.js @@ -1051,7 +1051,7 @@ define([ }, selectCandidate: function() { - var index = this._search.index || 0, + var index = (this._search.index && this._search.index != -1) ? this._search.index : 0, re = new RegExp('^' + ((this._search.full) ? this._search.text : this._search.char), 'i'), itemCandidate, idxCandidate; @@ -1061,6 +1061,8 @@ define([ if (!itemCandidate) { itemCandidate = item; idxCandidate = i; + if(!re.test(this.items[index].caption)) + break; } if (this._search.full && i==index || i>index) { itemCandidate = item;