2013-08-26 05:34:23 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2015-06-10 11:44:26 +03:00
|
|
|
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
|
2013-08-26 05:34:23 +04:00
|
|
|
XPCOMUtils.defineLazyModuleGetter(this, "SelectContentHelper",
|
|
|
|
"resource://gre/modules/SelectContentHelper.jsm");
|
|
|
|
|
|
|
|
addEventListener("mozshowdropdown", event => {
|
|
|
|
if (!event.isTrusted)
|
|
|
|
return;
|
|
|
|
|
2016-05-13 17:40:24 +03:00
|
|
|
if (!SelectContentHelper.open) {
|
|
|
|
new SelectContentHelper(event.target, this);
|
|
|
|
}
|
2013-08-26 05:34:23 +04:00
|
|
|
});
|