I want to make it where if I press enter in a text box in a form it will exit it, but upon making a onKeyPress event I have realized that I don't think there is a way to prevent default for specific keys that are pressed?
Wondered if anyone knew a way before I resorted to "exploiting" with a JS injection
Do you have props.deferUpdates set to true? This will make the enter button fire the update to the component rather than, having it update on each key press.
okay, I may have been a little confusing with my words. it's not a text component it's a form component with a widget of the type text so it doesn't have a defer update option.