Bob,
One context was that I was using arrow keys to nudge (translate) a clicked
model. After the click of the model, I would have problems similar to what you
describe with a script field on the page until I clicked in a non-applet part
of the page. The following pickCallback simulated clicking in a non-applet part
of the page:
if (nudgeTyp != "") { document.getElementById("script").blur();
document.getElementById("script").focus();
document.getElementById("script").blur(); }
Like I said. I thought is was a general applet issue.
Otis
--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com
On Jan 30, 2013, at 1:46 PM, Otis Rothenberger wrote:
> Bob,
>
> There was no problem with html5, but I suspect you knew that. I don't have
> active Java right now.
>
> BUT, I have encountered this problem in other contexts with the applet. I
> assumed is was a Java thing. When I encountered the problem, a forced
> JavaScript blur() then focus() would solve the problem. I could look up the
> context if it's useful, but your scenario comes close to what I was finding.
>
> Otis
>
>
> --
> Otis Rothenberger
> o...@chemagic.com
> http://chemagic.com
>
>
>
>
> On Jan 30, 2013, at 1:09 PM, Robert Hanson wrote:
>
>> Firefox 18.0.1 is showing very odd behavior. I'm wondering if this is
>> reproducible for other in Firefox or other browsers.
>>
>> 1) open http://chemapps.stolaf.edu/jmol/simple2.htm
>> 2) in the command textarea, enter
>>
>> background yellow
>>
>> 3) click on an atom
>> 4) back in the textarea enter
>>
>> background white
>>
>> Did that work? For me (4) fails to enter text.
>>
>> 5) click on the URL line, as if you were going to go to a new page
>> 6) back in the textarea enter
>>
>> background green
>>
>> It works, right?
>>
>> I sure don't remember this being a problem -- or, actually, I remember
>> something similar to this some time ago. Has it just suddenly reappeared?
>>
>> I know what is basically happening, and I can turn it off.The applet, when
>> you active it by clicking in it, also activates a keyboard listener. Somehow
>> Firefox is not recognizing that the textarea should take that over, and the
>> applet's keyboard listener is continuing to take the keys. So, in (4), if
>> *in the textarea* I type CTRL-K (which turns on key entry) and then
>>
>> background white [ENTER]
>>
>> I see those characters in the bottom left-hand corner of the applet, and the
>> command is executed.
>>
>> Thoughts on this? Is it a feature I should just remove?
>>
>> Bob
>>
>> --
>> Robert M. Hanson
>> Larson-Anderson Professor of Chemistry
>> Chair, Chemistry Department
>> St. Olaf College
>> Northfield, MN
>> http://www.stolaf.edu/people/hansonr
>>
>>
>> If nature does not answer first what we want,
>> it is better to take what answer we get.
>>
>> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_jan_______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users