Bug 351591: Pressing Enter in an exceptions dialog adds an unwanted 'scheme:http' entry in the list, r=mano

This commit is contained in:
gavin%gavinsharp.com 2006-12-07 21:25:38 +00:00
parent 93b1206e55
commit 4affb8e18e

View File

@ -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 ()