mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
Bug 351591: Pressing Enter in an exceptions dialog adds an unwanted 'scheme:http' entry in the list, r=mano
This commit is contained in:
parent
93b1206e55
commit
4affb8e18e
@ -157,8 +157,8 @@ var gPermissionManager = {
|
||||
|
||||
onHostKeyPress: function (aEvent)
|
||||
{
|
||||
if (aEvent.keyCode == 13)
|
||||
gPermissionManager.addPermission(nsIPermissionManager.ALLOW_ACTION);
|
||||
if (aEvent.keyCode == KeyEvent.DOM_VK_RETURN)
|
||||
document.getElementById("btnAllow").click();
|
||||
},
|
||||
|
||||
onLoad: function ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user