Bug 1272505 - rename handleKeyPress() in maillist list editor to not clash with the function in autocomplete.xml. r=jorgk, r=Ratty, a=Ratty CLOSED TREE
--HG-- extra : amend_source : b504f10c79453f385283c61569a53144c51077b3
This commit is contained in:
Родитель
8b75c38bc7
Коммит
7b81031ad9
|
@ -62,7 +62,7 @@
|
|||
completedefaultindex="true" forcecomplete="true"
|
||||
minresultsforpopup="3"
|
||||
ontextentered="awRecipientTextCommand(param, this)"
|
||||
onkeypress="handleKeyPress(this, event);"
|
||||
onkeypress="awHandleKeyPress(this, event);"
|
||||
onkeydown="awRecipientKeyDown(event, this);"
|
||||
onclick="awNotAnEmptyArea(event);">
|
||||
<image onclick="this.parentNode.select();" class="person-icon"/>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
completedefaultindex="true" forcecomplete="true"
|
||||
minresultsforpopup="3"
|
||||
ontextentered="awRecipientTextCommand(param, this)"
|
||||
onkeypress="handleKeyPress(this, event);"
|
||||
onkeypress="awHandleKeyPress(this, event);"
|
||||
onkeydown="awRecipientKeyDown(event, this);"
|
||||
onclick="awNotAnEmptyArea(event);">
|
||||
<image onclick="this.parentNode.select();" class="person-icon"/>
|
||||
|
|
|
@ -27,10 +27,10 @@ function getLoadContext() {
|
|||
.QueryInterface(Components.interfaces.nsILoadContext);
|
||||
}
|
||||
|
||||
function handleKeyPress(element, event)
|
||||
function awHandleKeyPress(element, event)
|
||||
{
|
||||
// allow dialog to close on enter if focused textbox has no value
|
||||
if (element.value != "" && event.keyCode == 13) {
|
||||
if (element.value != "" && event.keyCode == KeyEvent.DOM_VK_RETURN) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
completedefaultindex="true" forcecomplete="true"
|
||||
minresultsforpopup="3"
|
||||
ontextentered="awRecipientTextCommand(eventParam, this)"
|
||||
onkeypress="handleKeyPress(this, event);"
|
||||
onkeypress="awHandleKeyPress(this, event);"
|
||||
onkeydown="awRecipientKeyDown(event, this);"
|
||||
onclick="awNotAnEmptyArea(event);">
|
||||
<image onclick="awNotAnEmptyArea(event)" class="person-icon"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче