Upperstage
Upperstage

Reputation: 3757

Prevent tab into field

How can I prevent a user from tabbing into a field (comboxbox)?

Upvotes: 4

Views: 1000

Answers (2)

Nexum
Nexum

Reputation: 387

hm Jacob is right, because i dont know how to set it atm in ExtJs i would go a more complicated way, something like

combobox.on('focus', function(){
    var nextField = combo.nextSibling();
    nextField.focus();
});

Upvotes: 0

Jacob Mattison
Jacob Mattison

Reputation: 51062

If a field has a tabindex value of -1, it will be skipped when tabbing from field to field.

Upvotes: 7

Related Questions