diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 06:35:21 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 06:35:21 +0200 |
commit | 522095380fc6cf3b214746802012fccb8f1071bd (patch) | |
tree | 599baf7c39e78fe1a9ca3edc073cb3dfb171a54d /application/palemoon/components/preferences/permissions.js | |
parent | 90e7b450997fcf0e48034dbec4402f9f68027b0b (diff) | |
download | UXP-522095380fc6cf3b214746802012fccb8f1071bd.tar UXP-522095380fc6cf3b214746802012fccb8f1071bd.tar.gz UXP-522095380fc6cf3b214746802012fccb8f1071bd.tar.lz UXP-522095380fc6cf3b214746802012fccb8f1071bd.tar.xz UXP-522095380fc6cf3b214746802012fccb8f1071bd.zip |
Bug 431901 - Update preference dialogs to treat backspace and delete equivalently on Mac OS X
Diffstat (limited to 'application/palemoon/components/preferences/permissions.js')
-rw-r--r-- | application/palemoon/components/preferences/permissions.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/application/palemoon/components/preferences/permissions.js b/application/palemoon/components/preferences/permissions.js index 25d86fabf..30c1db8be 100644 --- a/application/palemoon/components/preferences/permissions.js +++ b/application/palemoon/components/preferences/permissions.js @@ -283,8 +283,13 @@ var gPermissionManager = { onPermissionKeyPress: function (aEvent) { - if (aEvent.keyCode == 46) + if (aEvent.keyCode == KeyEvent.DOM_VK_DELETE +#ifdef XP_MACOSX + || aEvent.keyCode == KeyEvent.DOM_VK_BACK_SPACE +#endif + ) { this.onPermissionDeleted(); + } }, _lastPermissionSortColumn: "", |