How to find next Node In Focus Order?.

How to find next Node In Focus Order?.

Hi!
I am writing a programmatically control the focus (basically what I want is to transform "tab" to "enter")... why do I want such a non standard thing? Customer request... and since he is paying, I have to implement it.

Now, currently I solved the problem by finding the next element with a greater "tabIndex" value, but that forces me to configure tabIndex values for everything in my form... and that is specially problematic because some of my UIs are generated dynamically with information in the database...

So, what I want, is to find the next ":input" element traversing the DOM tree in the same way the focus moves when pressing the "tab" key... that should be something like "find the next sibling that is ":input"... if none found, go to parent node, got to sibling of parent node, look in there... if none found, and this parent has no next sibling, go to the parent of the parent and repeat operation recursively... (if that is not correct please say so)

So.... is there (somewhere) a jQuery plugin (or method) that already does this? Or do I need to write it?

Thanks
Regards,