Re: Applet Navigation
On Mar 5, 7:00 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
.."One question I was hoping you would answer what keystroke allows a
user to get into an applet on a web page, or get out of an applet on a
web page? ...
Applet focus has always been a mess. To my knowledge,
Sun never defined what should happen with applet focus
and keyboard traversal, so whatever the browser maker
feels is appropriate, is 'correct'.
My experience has been:
- On Windows with some JREs - the applet* got automatic
focus and you needed to click somewhere else in the
page to get focus to any HTML elements (or use the
'back' button etc.)
- On windows with other JREs, the focus is left on the
first focusable HTML element in the page, and the applet
never gained the focus when cycling through the focusable
elements.
- On Ubuntu Linux with a Java 6 JRE, using Google Chrome
or FireFox, the applet grabs the focus, and when you get
to the last focusable element in the applet, the focus
jumps to the focusable HTML elements. But on the
second & subsequent passes through the focus cycle, the
applet does *not* regain focus. The Ubuntu experience,
while being better than anything I tried on Windows,
is still not ideal.
* Of course, if there were multiple applets in a web
page, that complicates matters, some JRE/User Agent
combos. will put the focus to the first applet listed
in the page. Other JRE/UA combos. will apply focus to
the first that has finished loading, still other JRE/UA
combos. will provide the focus to the *last* applet to
finish loading!
The only *possible solution* to this mess that I can
think of, is not going to be something you would like
to hear. I reckon the best chance of getting the
applet inserted into the normal page focus cycle,
would be to use *JavaScript* to manage the focus.
Note that I have never actually tried it, and I
suspect your might have to change the applets themselves
in order to make it workable.
--
Andrew T.
pscode.org