diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-06 10:39:22 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-06 10:39:22 -0500 |
commit | cf4ad4e969bf553c4e7bcf79e8f3a98783584070 (patch) | |
tree | 8575660d9967c4390fd4317ecf0882c0d96c3745 /toolkit/components/passwordmgr/content | |
parent | 741abd440e4f4c4d91799f06c826e0f879c5c837 (diff) | |
download | UXP-cf4ad4e969bf553c4e7bcf79e8f3a98783584070.tar UXP-cf4ad4e969bf553c4e7bcf79e8f3a98783584070.tar.gz UXP-cf4ad4e969bf553c4e7bcf79e8f3a98783584070.tar.lz UXP-cf4ad4e969bf553c4e7bcf79e8f3a98783584070.tar.xz UXP-cf4ad4e969bf553c4e7bcf79e8f3a98783584070.zip |
Issue #65 - Remove AppConstants from toolkit/components/passwordmgr
Diffstat (limited to 'toolkit/components/passwordmgr/content')
-rw-r--r-- | toolkit/components/passwordmgr/content/passwordManager.js | 9 |
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(); } } |