How to test whether we're in an active field when evaluating keyboard input?
Thanks to the nifty new script triggers, it is now possible to cycle through tabs with right and left arrow, use 'A' to find all records, the tab key to mark/unmark a record, etc. Super. This works fine in list views where no other user input is expected, but for consistency I'd like to use the same in single-record views. Unfortunately here one also has to deal with text-editing input.
One solution I've tried is simply to do a pattern match on the name of the active field (if any), the idea being that we pass through all keyboard input on fields such as "txtLastName", "txtFirstName", etc. that contain "txt".
Is there perhaps an easier way? How could I simply test whether there is an active field or not? Simply test to see whether Get(ActiveFieldName) comes back empty? (Hmm, maybe I'll go try that.)