View Full Version : Combobox - disable autoComplete on TAB

18 Feb 2010, 1:49 AM
I want to disable auto-filling of the value in combobox when TAB is hit.

I have a combo with values like those:

new Ext.form.ComboBox({
mode: 'remote',
minChars: 0,
autoSelect: false,
selectOnFocus: true,
enableKeyEvents: true

And I want to use it to supply the list of possible options, i.e.:

test 1
test 2
other 1
other 2

filtered by a user-entered keyword, i.e.: test,

but when user hits TAB I don't want the first match option (test 1) to be automatically selected (only ENTER should work like that).
TAB should tab to another field leaving in combo the value that was entered by user.