Bug 1012398 - Completion doesn't take capitalization from address book entry. Also fixes bug 1009469. r=Enn

This commit is contained in:
Magnus Melin 2014-06-27 21:29:07 +03:00
Родитель f294a3551d
Коммит 322da40913
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -13,6 +13,7 @@
<textbox id="autocomplete"
type="autocomplete"
completedefaultindex="true"
forcecomplete="true"
onsearchcomplete="searchComplete();"
autocompletesearch="simple"/>
@ -143,6 +144,12 @@ const tests = [
result: "Result",
start: 6, end: 6
},
{ desc: "TAB key should confirm suggestion when forcecomplete is set",
key: "VK_TAB",
removeSelection: false,
result: "Result",
start: 6, end: 6
},
];
function nextTest() {

Просмотреть файл

@ -464,6 +464,8 @@
cancel = this.mController.handleKeyNavigation(aEvent.shiftKey ?
KeyEvent.DOM_VK_UP :
KeyEvent.DOM_VK_DOWN);
else if (this.forceComplete && this.mController.matchCount >= 1)
this.mController.handleTab();
break;
case KeyEvent.DOM_VK_UP:
case KeyEvent.DOM_VK_DOWN: