[FIX] fix autocompletion problems with quick presses
authorGéry Debongnie <ged@odoo.com>
Thu, 20 Nov 2014 09:26:13 +0000 (10:26 +0100)
committerDenis Ledoux <dle@odoo.com>
Fri, 21 Nov 2014 11:04:23 +0000 (12:04 +0100)
commitbde1a4432fef4cb2f5fe8ab600e72ab5b8b4830d
treea1e13001d16ddefc7c832912ff03ef3cadd3257e
parentcc762004ede6d74a272cfbdc5ee8dc582da68158
[FIX] fix autocompletion problems with quick presses

Problem was that when the user types quickly in the search bar and press
enter, the keydown event of the enter key happens before the keypress
event of the last key entered.  This means that the autocompletion has
a wrong string.  The fix is to move the enter selection detection from
keydown to keyup.
addons/web/static/src/js/search.js