mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1311998 - [One-off searches] Right click on a result from Awesomebar closes the dropdown. r=mak
MozReview-Commit-ID: Ieqceceepix --HG-- extra : rebase_source : de8480a08777b982625648b934b30aec942f7416
This commit is contained in:
parent
c1f7613ca2
commit
05cb668dad
@ -1367,6 +1367,19 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
onget="return this._overrideValue;"
|
||||
onset="this._overrideValue = val; return val;"/>
|
||||
|
||||
<method name="onPopupClick">
|
||||
<parameter name="aEvent"/>
|
||||
<body><![CDATA[
|
||||
if (aEvent.button == 2) {
|
||||
// Ignore right-clicks.
|
||||
return;
|
||||
}
|
||||
// Otherwise "call super" -- do what autocomplete-base-popup does.
|
||||
let controller = this.view.QueryInterface(Components.interfaces.nsIAutoCompleteController);
|
||||
controller.handleEnter(true, aEvent);
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<method name="enableOneOffSearches">
|
||||
<parameter name="enable"/>
|
||||
<body><![CDATA[
|
||||
|
Loading…
Reference in New Issue
Block a user