Bug 431901 - Update preference dialogs to treat backspace and delete equivalently on Mac OS X

This commit is contained in:
janekptacijarabaci 2018-04-26 06:35:21 +02:00 • committed by Roy Tam
commit 078801b39f
3 changed files with 14 additions and 4 deletions

View file

@ -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 : "",