On Tuesday, January 27, 2004, at 03:59 PM, Miguel Howard wrote:
[snip]
Another contextual menu issue that I noticed was that in Mozilla and
Camino the full contextual menu doesn't appear on screen. Mozilla puts
the contextual menu just below the mouse click, but some of the menu
winds up off the screen. With Camino, the position of the contextual
menu depends on whether the Toolbar is showing, When the toolbar is
showing the contextual menu appears several millimeters below the
initial mouse click. When the toolbar isn't showing, the contextual
menu appears just below the initial mouse click. In both cases, part of
the contextual menu is off the screen.
You are saying that it is 'off the screen'. Do you mean that you are
clicking near the edge of the screen and then the menu spills off the edge
(or bottom) of the screen?
Yes, exactly. Safari seems to be "smart enough" to move the contextual menu up a bit so it doesn't spill off the screen, Camino and Mozilla allow the menu to spill of screen. Camino has the extra oddity that the position of the menu also depends on whether the button bar is hidden or showing.
If so, I honestly don't know if there is anything I can do about it.
I guess I can send a bug report to the Mozilla and Camino developers?
That's good.In contrast, Safari will move the contextual window up, so the whole menu fits on the screen.
Another weird one that happens in Mozilla. Once the mouse is used to
rotate a molecule, my keyboard no longer works. For example, the
"command w" key combination doesn't work, and I cannot type in the url
field. Clicking the close button works, and the "command q" key
combination works too.
Here is my theory. Once you click on the JmolApplet it has focus. Keyboard
events are then sent to the JmolApplet.
That sounds like a good theory. More information: when a Jmol window that is inside a Safari window is clicked, command key (command w, command m, etc) combinations are sent to Safari, but regular keys are not sent (no "tabbing" to the url field). Clicking anywhere in the Safari window returns the keystrokes to Safari (tabbing to the url field works). Incidentally, the Java applet ChemSample (its home page has disappeared from the internet)
http://www.wsc.ma.edu/cmasi/organic2/diels-alder/diels.html
has the same problem when used with Mozilla 1.6. I should also note that following a link to another page or reloading the same page will give keyboard focus back to the browser window. As far as I can tell, both Mozilla and Safari rely on Apple's Java Plug-in to run Java Applets
The JmolApplet ignores keyboard events. Since they are not handled then
they should be propogated to the enclosing window ... Mozilla. Seems like
this isn't happening.
Which JVM is Mozilla using? If it is using 1.3 then I'll bet it is an Apple bug.
You can determine which JVM is being used by opening Tools -> Web
Development -> Java Console and then looking at the first few lines after
the JmolApplet is loaded.
Unfortunately, the Java Console choice is grayed out in that menu. I don't know why. I poked around a bit and checked the versions of the Java plug-ins and the are v 1.3.1. Apple's web site says the following about their 1.4.1 update:
The Java 1.4.1 Update 1 adds the following enhancements :
Improved Java applet support for Safari and other web browsers that support the Java Internet Plug-In.
Improved drawing correctness and performance.
This update includes Java 1.3.1.
I think Mozilla uses the Apple Plug-in, because removing the plug-in from the system level Library disables Mozilla's ability to run Java applets.
This isn't a problem in Safari.
These issues seem more like browser issues, but I just wanted to make
certain they weren't JmolApplet issues.
There certainly are some 'browser issues' involved, but I suspect we can
make some changes/enhancements to the JmolApplet to better handle the
situation.
Thanks again, Miguel
Thank me, that is funny.
Thanks, Chris
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

