Text entry field and page actions
October 30, 2008 12:00 AM
This is rather difficult. I haven't been able to come up with a solution that fits exactly what you need. I have a couple of thoughts.The most obvious thought is to not use the Spacebar as a navigation tool. I prefer Page Up and Page Down. The arrow keys are possible candidates too. The Spacebar is a good navigation tool if it is just a page turner (as it is in PowerPoint), but I think it is a poor navigation tool if you have any form interaction at all. That being said, if you are absolutely forced to adopt this design, then I suppose you could disinherit the Spacebar, but incorporate a special page-level Spacebar.This action fires only when certain conditions are met. What are those conditions? That requires some creativity. Without knowing your needs, I could offer something like this:Create an action on the Change/Select of the text box. That action is set to modify a variable (call it varTextChanged) to the value 1. Set a delay on this action so it happens after 6 seconds. Set your Spacebar action to fire only if varTextChanged = 1. The end result is that the user can use the Spacebar to type in the field. Once he begins typing, he has to finish his text within 6 seconds. After that time, the Spacebar is set to go to the next page. The problems with this are numerous, though. What if the user needs more than 6 seconds? What if he doesn't need that much time and keeps pressing Spacebar to advance? What if he goes back to fix something? With the right documentation, you can help the learner out (such as a Text Box that pops up saying, "Press Space to continue"). But, really, I strongly suggest against the Spacebar as a navigation tool on a page with form elements. It is just poor design, IMO. You can solve many headaches by using keys that will never be used for forms (which probably actually rules out arrow keys, but Page Up and Page Down may still be viable).Kevin
Discussions have been disabled for this post