Bug 337386: search suggestion autocomplete latency/delay can make search slow to respond or seem broken, patch by mconnor, r=ben
git-svn-id: svn://10.0.0.236/trunk@201600 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
26a01b79eb
commit
19e7cbd0dd
@ -730,6 +730,19 @@
|
||||
action="return this.openSearch();"/>
|
||||
#endif
|
||||
|
||||
<handler event="keypress" keycode="VK_ENTER"><![CDATA[
|
||||
// this is a bit of a hack to ensure that even if a search is ongoing
|
||||
// we will still search immediately
|
||||
const contractID =
|
||||
"@mozilla.org/autocomplete/search;1?name=search-autocomplete";
|
||||
const nsIACSearch = Components.interfaces.nsIAutoCompleteSearch
|
||||
var searchService = Components.classes[contractID]
|
||||
.getService(nsIACSearch);
|
||||
searchService.stopSearch();
|
||||
this.mEnterEvent = null;
|
||||
this.onTextEntered(event);
|
||||
]]></handler>
|
||||
|
||||
<handler event="dragdrop" phase="capturing">
|
||||
nsDragAndDrop.drop(event, this.searchbarDNDObserver);
|
||||
</handler>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user