how do i keep enter from closing form

Started by andrew · 2010-03-12 18:54 UTC · 1 replies · SMF topic #1203

in my project i have the event "returnpressed"
set to do a specific function when enter is pressed
however during testing it closes the form and doesnt do the function.
how can i stop the form from closing when "enter" is pressed

i know im missing something but i dont know what

thanks
{2}