1. How attached are you to doing your workflow in a portal? If you did this on a list view layout, you'd have easier control of when sorting gets triggered.
2. Many folks have had success using the OnObjectKeystroke and OnLayoutKeystroke script triggers to achieve arrow key- and other keyboard-based navigation. If you're new to script triggers, you may want to look for best practices that avoid issues other folks have run into, especially this.
Thank you for your reply
I attached 2 screenshots which show how my findfield works. And I don't see how I can do this with a list view. It has to be a portal, as it is hidden when search field = "" and it's shown when a search criteria is entered.
picture with popup hidden: https://www.dropbox.com/s/8lmtpk3dcpebo9c/Screenshot%202014-11-25%2009.08.37.png?dl=0
picture with popup open:https://www.dropbox.com/s/w4ob33fzkdzweax/Screenshot%202014-11-25%2009.08.42.png?dl=0
I will check OnObjectKeystroke and OnLayoutKeystroke, thank you
Keystroke works great