Pressing <Enter> differs from pressing <Space Bar> on a focused button
Posted on 2006-05-31
I have created a wizard panel containing 6 pages.
The panel has a <Previous> and a <Next> button to browse through the pages.
Simple ActionListener's are listening to the pressing of those two buttons.
I'm on the 1st page and I tab to give the <Next> button the focus.
Now, when I press the space bar I jump to the 2nd page.
However, when I press <Enter> I jump to the 3rd page. (pressing again brings me to the 5th page)
I think when I press <Enter> I jump to the next page and then for some reason
the <Next> button is triggered again, so it brings me in fact two pages further.
Somebody knows any solution or workaround?
Thanks in advance.