Synchronize xpfe autocomplete handlers with toolkit. bug 255731, r=Neil, sr=mscott

git-svn-id: svn://10.0.0.236/trunk@188138 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ajschult%verizon.net 2006-01-25 03:46:53 +00:00
parent 3ab8db0ba4
commit 409bdcc3d8
8 changed files with 11 additions and 14 deletions

View File

@ -11,7 +11,7 @@
<commandset id="cmdsGlobalCommands">
<command id="cmdGotoURL"
ontextcommand="inspector.gotoTypedURL();"
ontextentered="inspector.gotoTypedURL();"
oncommand="inspector.gotoTypedURL()"/>
<command id="cmdShowOpenURLDialog" oncommand="inspector.showOpenURLDialog()"/>

View File

@ -93,7 +93,7 @@
searchSessions="addrbook" timeout="300" maxrows="4"
autoFill="true" autoFillAfterMatch="true" forceComplete="true"
minResultsForPopup="3"
ontextcommand="awRecipientTextCommand(eventParam, this)"
ontextentered="awRecipientTextCommand(eventParam, this)"
oninput="setupLdapAutocompleteSession();"
onkeypress="handleKeyPress(this, event);"
onkeydown="awRecipientKeyDown(event, this);"

View File

@ -117,7 +117,7 @@
searchSessions="addrbook" timeout="300" maxrows="4"
autoFill="true" autoFillAfterMatch="true" forceComplete="true"
minResultsForPopup="3"
ontextcommand="awRecipientTextCommand(eventParam, this)"
ontextentered="awRecipientTextCommand(eventParam, this)"
oninput="setupLdapAutocompleteSession();"
onkeypress="handleKeyPress(this, event);"
onkeydown="awRecipientKeyDown(event, this);"

View File

@ -737,7 +737,7 @@
searchSessions="addrbook" timeout="300" maxrows="4"
autoFill="true" autoFillAfterMatch="true" forceComplete="true"
minResultsForPopup="3" ignoreBlurWhileSearching="true"
ontextcommand="awRecipientTextCommand(eventParam, this)"
ontextentered="awRecipientTextCommand(eventParam, this)"
onerrorcommand="awRecipientErrorCommand(eventParam, this)"
oninput="gContentChanged=true; setupAutocomplete();" disableonsend="true"
onkeypress="awRecipientKeyPress(event, this)"

View File

@ -92,7 +92,7 @@
searchSessions="addrbook" timeout="300" maxrows="4"
autoFill="true" autoFillAfterMatch="true" forceComplete="true"
minResultsForPopup="3"
ontextcommand="awRecipientTextCommand(eventParam, this)"
ontextentered="awRecipientTextCommand(eventParam, this)"
onkeypress="handleKeyPress(this, event);"
onkeydown="awRecipientKeyDown(event, this);"
onclick="awNotAnEmptyArea(event);">

View File

@ -79,7 +79,7 @@
searchSessions="addrbook" timeout="300" maxrows="4"
autoFill="true" autoFillAfterMatch="true" forceComplete="true"
minResultsForPopup="3" ignoreBlurWhileSearching="true"
ontextcommand="awRecipientTextCommand(eventParam, this)"
ontextentered="awRecipientTextCommand(eventParam, this)"
onerrorcommand="awRecipientErrorCommand(eventParam, this)"
oninput="gContentChanged=true; setupAutocomplete();" disableonsend="true"
onkeypress="awRecipientKeyPress(event, this)"

View File

@ -188,8 +188,8 @@
inputtooltiptext="&locationBar.tooltip;"
newlines="stripsurroundingwhitespace"
oninput="gBrowser.userTypedValue = this.value;"
ontextcommand="return handleURLBarCommand(eventParam, domEvent);"
ontextrevert="return handleURLBarRevert();"
ontextentered="return handleURLBarCommand(eventParam, domEvent);"
ontextreverted="return handleURLBarRevert();"
onfocus="URLBarFocusHandler(event);"
onmousedown="URLBarMouseDownHandler(event);"
onclick="URLBarClickHandler(event);">

View File

@ -298,9 +298,6 @@
<field name="currentSearchString">""</field>
<field name="ignoreInputEvent">false</field>
<field name="oninit">null</field>
<field name="ontextcommand">null</field>
<field name="ontextrevert">null</field>
<field name="onerrorcommand">null</field>
<field name="mDefaultMatchFilled">false</field>
<field name="mAutoCompleteListener"><![CDATA[
@ -755,7 +752,7 @@
this.clearTimer();
if (aFireTextCommand)
this._fireEvent("textcommand", this.userAction, aTriggeringEvent);
this._fireEvent("textentered", this.userAction, aTriggeringEvent);
]]></body>
</method>
@ -792,7 +789,7 @@
if (errItem)
this._fireEvent("errorcommand", errItem);
this._fireEvent("textcommand", "clicking");
this._fireEvent("textentered", "clicking");
]]></body>
</method>
@ -801,7 +798,7 @@
<body><![CDATA[
var val = this.currentSearchString;
var ok = this._fireEvent("textrevert");
var ok = this._fireEvent("textreverted");
if ((ok || ok == undefined) && val)
this.setTextValue(val);