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

This commit is contained in:
Michael Pruett
2014-05-12 23:11:19 -05:00
parent 39da407767
commit e4b3983d54
8 changed files with 28 additions and 9 deletions

View File

@@ -276,7 +276,11 @@ 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();
},