зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1012398
- Completion doesn't take capitalization from address book entry. Also fixes bug 1009469
. r=Enn
This commit is contained in:
Родитель
f294a3551d
Коммит
322da40913
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче