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:
aceman 2016-05-15 00:00:40 +02:00
Родитель 8b75c38bc7
Коммит 7b81031ad9
4 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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"/>