Instead of re-focusing the text field, I would recommend not losing focus in the first place. I achieve this by preventing the default action on mousedown .
Here is jQuery, assuming list is your parameter list, and all parameters have a listEl class:
list.on('mousedown', '.listEl', function(e) { e.preventDefault(); });
Patrick rudolph
source share