Implements a familiar UX where typing letters moves the selection to the first matching item, similar to Windows Explorer.
I thought someone might find this useful...
UniListBox.ClientEvents.ExtEvents ->
function afterrender(sender, eOpts)
{
var lb = sender,
store = lb.getStore(),
field = lb.displayField || 'val';
lb._searchBuffer = '';
lb.on('keypress', function(e){
var ch = e.event.key;
if (!ch || ch.length !== 1)
retu
Implements a familiar UX where typing letters moves the selection to the first matching item, similar to Windows Explorer.
I thought someone might find this useful...
UniListBox.ClientEvents.ExtEvents ->
function afterrender(sender, eOpts)
{
var lb = sender,
store = lb.getStore(),
field = lb.displayField || 'val';
lb._searchBuffer = '';
lb.on('keypress', function(e){
var ch = e.event.key;
if (!ch || ch.length !== 1)
retu