mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 431901 - Update preference dialogs to treat backspace and delete equivalently on Mac OS X
This commit is contained in:
parent
af4f1319d1
commit
078801b39f
3 changed files with 14 additions and 4 deletions
|
|
@ -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 : "",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ browser.jar:
|
|||
* content/browser/preferences/applicationManager.js
|
||||
* content/browser/preferences/colors.xul
|
||||
* content/browser/preferences/cookies.xul
|
||||
content/browser/preferences/cookies.js
|
||||
* content/browser/preferences/cookies.js
|
||||
content/browser/preferences/content.xul
|
||||
content/browser/preferences/content.js
|
||||
* content/browser/preferences/connection.xul
|
||||
|
|
@ -29,7 +29,7 @@ browser.jar:
|
|||
* content/browser/preferences/main.xul
|
||||
content/browser/preferences/main.js
|
||||
* content/browser/preferences/permissions.xul
|
||||
content/browser/preferences/permissions.js
|
||||
* content/browser/preferences/permissions.js
|
||||
* content/browser/preferences/preferences.xul
|
||||
content/browser/preferences/privacy.xul
|
||||
content/browser/preferences/privacy.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: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue