Bug 940451 - Enable tab scrolling in Metro urlbar autocomplete popup [r=rsilveira]

This commit is contained in:
Matt Brubeck 2013-11-19 14:37:33 -08:00
parent fb27786b35
commit b413f5a04f
3 changed files with 9 additions and 0 deletions

View File

@ -540,6 +540,8 @@
<property name="matchCount" readonly="true" onget="return this.input.controller.matchCount;"/>
<property name="popupOpen" readonly="true" onget="return !this.hidden"/>
<property name="overrideValue" readonly="true" onget="return null;"/>
<!-- Alias of popupOpen, for compatibility with global/content/bindings/autocomplete.xml -->
<property name="mPopupOpen" readonly="true" onget="return this.popupOpen"/>
<property name="selectedItem">
<getter>

View File

@ -239,6 +239,7 @@
autocompletepopup="urlbar-autocomplete"
completeselectedindex="true"
placeholder="&urlbar.emptytext;"
tabscrolling="true"
onclick="SelectionHelperUI.urlbarClick();"/>
<toolbarbutton id="go-button" class="urlbar-button"

View File

@ -337,6 +337,12 @@ gTests.push({
EventUtils.synthesizeKey("VK_DOWN", {}, window);
is(gEdit.popup._searches.selectedIndex, 0, "key select search: first search selected");
EventUtils.synthesizeKey("VK_TAB", {}, window);
is(gEdit.popup._searches.selectedIndex, 1, "tab key: second search selected");
EventUtils.synthesizeKey("VK_TAB", { shiftKey: true }, window);
is(gEdit.popup._searches.selectedIndex, 0, "shift-tab: first search selected");
}
});