mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 940451 - Enable tab scrolling in Metro urlbar autocomplete popup [r=rsilveira]
This commit is contained in:
parent
fb27786b35
commit
b413f5a04f
@ -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>
|
||||
|
@ -239,6 +239,7 @@
|
||||
autocompletepopup="urlbar-autocomplete"
|
||||
completeselectedindex="true"
|
||||
placeholder="&urlbar.emptytext;"
|
||||
tabscrolling="true"
|
||||
onclick="SelectionHelperUI.urlbarClick();"/>
|
||||
|
||||
<toolbarbutton id="go-button" class="urlbar-button"
|
||||
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user