View Single Post
Old 07-19-2011, 07:52 PM   PM User | #4
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,452
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
i ask because pressing enter usually triggers a form submit or onchange event.
if that's the case, you can simply call form.submit() or input.onchange() - no reason to fake key presses...



in other words, just do what enter does, don't do enter.

post the code if you need a hand.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.8% IE9:11.4% IE10:6.5%
rnd me is offline   Reply With Quote