summaryrefslogtreecommitdiffstats
path: root/toolkit/components/passwordmgr/content
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-06 10:39:22 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:39:35 +0200
commit30ec922d7e7a71e75d9bd636647e8704aa6f1f0c (patch)
tree289d8332bbb9c6a14adf011da8b20792cbb3bd50 /toolkit/components/passwordmgr/content
parent1000488a5bcdc5078b96c1781a260932c5ae39f1 (diff)
downloadUXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar.gz
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar.lz
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.tar.xz
UXP-30ec922d7e7a71e75d9bd636647e8704aa6f1f0c.zip
Issue #65 - Remove AppConstants from toolkit/components/passwordmgr
Diffstat (limited to 'toolkit/components/passwordmgr/content')
-rw-r--r--toolkit/components/passwordmgr/content/passwordManager.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/toolkit/components/passwordmgr/content/passwordManager.js b/toolkit/components/passwordmgr/content/passwordManager.js
index 327ebbdf8..662f21279 100644
--- a/toolkit/components/passwordmgr/content/passwordManager.js
+++ b/toolkit/components/passwordmgr/content/passwordManager.js
@@ -5,7 +5,6 @@
/** * =================== SAVED SIGNONS CODE =================== ***/
const { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
-Cu.import("resource://gre/modules/AppConstants.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
@@ -486,9 +485,13 @@ function HandleSignonKeyPress(e) {
if (signonsTree.getAttribute("editing")) {
return;
}
+
+#ifdef XP_MACOSX
if (e.keyCode == KeyboardEvent.DOM_VK_DELETE ||
- (AppConstants.platform == "macosx" &&
- e.keyCode == KeyboardEvent.DOM_VK_BACK_SPACE)) {
+ e.keyCode == KeyboardEvent.DOM_VK_BACK_SPACE) {
+#else
+ if (e.keyCode == KeyboardEvent.DOM_VK_DELETE) {
+#endif
DeleteSignon();
}
}