PDA

View Full Version : Stopping the ENTER key from moving to the next frame


rodecss
07-09-2005, 05:14 AM
I have an input text field where a student enters a response to a simple multiplication question. When they press ENTER the next question appears. If the focus is not in the input text field and a student presses the ENTER key the next frame appears. Is there a script that will prevent this?

rodecss

creynders
07-09-2005, 10:57 AM
automatically set the focus to that textfield. Do it either with the focusmanager or use plain old Selection.setFocus("_root.myTextFieldInstance");

rodecss
07-09-2005, 10:56 PM
As long as fpcus is in the text field there is no problem. If a student deliberately changes the focus by clicking away from the text field, is there anyway to prevent the ENTER key from moving to the next frame?
Thanks
rodecss