I would like to add keyboard shortcuts to my web application. I can do this
with javascript without any issue using something like Mousetrap and I can
interact with jsmol via jmolScript calls.
The issue comes when using the Java version (which I still use via Waterfox
because I'm stubborn and it is faster).
The jmol applet in the Java version seems to trap all keystrokes and pass
nothing to the underlying browser while the jmol applet has focus -- is
there any way to have the jmol applet pass all unbound keystrokes to the
browser?
Alternatively, is there a way to have jmol call custom functions whenever a
key is pressed? If so I can just define the keyboard shortcuts in both
Mousetrap and jmol.
I attempted to play with set allowKeystrokes and set showKeyStrokes but I
didn't really get anywhere. allowKeystrokes just caused my applet to freeze
and nothing but a refresh would bring it back. showKeystrokes didn't really
work on my screen, although it's possible that the bottom-left corner of
the applet is offscreen, set echo top left didn't change anything. Again my
testing of allowKeystrokes and showKeystrokes was in the Java version of
jmol using Waterfox.
Thanks
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users