I have a list of elements I would like to be able to have brought into focus when the user is selecting items. I've tried calling .focus() with Jquery on these objects to no avail. Is there anything I'm missing? :)
EDIT: I have a list (ul) of elements. I shift click on a starting item and and press the arrow keys to continue selecting. Up and down. I would really like for the shift selection to function as if it was in Finder or Windows Explorer. Scrolling up when an item is selected that's not visible (and down for the same case).
Are there any handy jQuery plugins to handle this for me?
EDIT2: Figured out some things and determined a larger problem.
Right now I am using the jQuery plugin called scrollTo. I can scroll to an element of my list using this plugin. However, "scrolling" to an item means it is now the first item in the list, which is NOT desirable behavior. Select any number of items in Finder or Explorer and see that when you shift-arrow select an item that's offscreen, it only scrolls down one item's worth of space and does NOT make it the top element.
Easy to fix of course. ;) I am currently keeping track of the current element just off screen on the top and the current element in the list that's just offscreen on the bottom. However, when the user selects an item out of the list after they have done some scrolling, I currently have no way to tell what elements are just out of sight, creating an impasse.
Any ideas? :P