Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Safari not passing command key keyboard shortcuts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari not passing command key keyboard shortcuts



Safari does not seem to passing any command key modifier keyboard
shortcuts to applets.

For example, even though I register it:

JMenuItem jmi = new JMenuItem("Copy");
jmi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C,
Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));

When I press command-C. It isn't received, by the applet, Safari
intercepts it instead. Basically any command key keyboard shortcut
that Safari accepts isn't passed to the applet, even when the applet
has focus and is accepting keystrokes and other key modifier commands.
Such as shift-return.

It's worth noting that browser plugins in Safari such as Flash do
receive copy, cut and paste command using keyboard short cuts.

What is strange is that all the copy, cut, and paste command-key short
cuts do work in Explorer. But other command-key modifiers that are
implement by both Explorer and the applet such as command-b do get
intercepted before they get to the browser.

I can probably live without most command key short cuts in applets. I
wouldn't think of trying to override something like command-Q, and I
don't think the browser should let an applet do that. Unfortunately
lack of keyboard short cuts for copy, cut and paste are a show stopper
for my applet on Mac.

I'm using the latest JVM 1.4.1_01, and Safari 1.0(v85).

Is there a work around in Safari? Is this Classifiable as bug? If so
would it be in the JVM or Safari?

Thanks,
Clayton Partridge
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.