From 522095380fc6cf3b214746802012fccb8f1071bd Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 26 Apr 2018 06:35:21 +0200 Subject: Bug 431901 - Update preference dialogs to treat backspace and delete equivalently on Mac OS X --- application/palemoon/components/preferences/cookies.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'application/palemoon/components/preferences/cookies.js') diff --git a/application/palemoon/components/preferences/cookies.js b/application/palemoon/components/preferences/cookies.js index ea7e7d4e2..d493a0056 100644 --- a/application/palemoon/components/preferences/cookies.js +++ b/application/palemoon/components/preferences/cookies.js @@ -725,8 +725,13 @@ var gCookiesWindow = { }, onCookieKeyPress: 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.deleteCookie(); + } }, _lastSortProperty : "", -- cgit v1.2.3