darylrowland / angucomplete

AngularJS Autocomplete Directive
511 stars 281 forks source link

Added onSelect callback and tabIndex value for the input field. #110

Open andyepx opened 9 years ago

andyepx commented 9 years ago

I have added an onSelect callback function (which you can attach to the angucomplete directive as onselect="somefunction(item)" and a tabindex value, that can be attached to the directive as elementTabIndex="X" and is reflected to the input box as tabindex="X". These changes, in particular the addition of tabindex, helped with making the plugin more accessible to keyboard navigation.