2 Replies Latest reply on Sep 29, 2014 2:55 PM by philmodjunk

    Re-Enter field on tab

    nihmbrisby

      Title

      Re-Enter field on tab

      Post

      Hi- 

      This is something I've done before but suddenly can't remember how (and have had no success googling).  I have a field with "Select Entire Contents on Entry."  When I press tab, instead of moving to another field, I want it to re-select entire contents (ie, when i press tab I want the cursor to move back into it's current field (this takes place in a pop-up fyi)

      Thanks!

        • 1. Re: Re-Enter field on tab
          nihmbrisby

          Ok so I just redid the tab order so the field in question was last (relative to other fields in the pop up).  That worked, though I'd be curious if there's another way to achieve this so that I could have more than on field in a pop-up with this behavior.

          Thanks!

          • 2. Re: Re-Enter field on tab
            philmodjunk

            You might use OnObjectKeystroke to perform a script that use Code ( Get ( TriggerKeystroke ) ) = 9 to detect pressing the tab key. This script can then put the focus where you want it and end with Exit Script [false] (only when tab is pressed), to keep the tab from changing the focus.