Fix for bug 182321. Force to finish the autocomplete (which will remove any extra

"[nickname] >>") when the user either click in the input text or when the user
navigate with the left or right arrow key. R/SR=hewitt, spitzer


git-svn-id: svn://10.0.0.236/trunk@134723 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ducarroz%netscape.com
2002-12-03 21:41:04 +00:00
parent 033cfbefbd
commit 23153ef597

View File

@@ -864,6 +864,7 @@
case KeyEvent.DOM_VK_LEFT:
case KeyEvent.DOM_VK_RIGHT:
this.finishAutoComplete(false, false, aEvent);
this.clearTimer();
this.closeResultPopup();
break;
@@ -1273,6 +1274,9 @@
<handler event="blur" phase="capturing"
action="if ( !(this.ignoreBlurWhileSearching &amp;&amp; this.isSearching) ) {this.userAction = 'none'; this.finishAutoComplete(false, false, event);}"/>
<handler event="mousedown" phase="capturing"
action="if ( !this.mMenuOpen ) this.finishAutoComplete(false, false, event);"/>
</handlers>
</binding>