Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari not passing command key keyboard shortcuts



I haven't really dug into this, Clayton, but after noticing this the other day and trying a couple of different things it appeared that if an AWT component has focus this will occur, but if a Swing component has focus the events will be propagated correctly.

Sounds as if you're also seeing a secondary Safari issue, but the general one seems to have been introduced in 1.4.x and occurs outside of the browser context as well.

Steve

On Saturday, August 23, 2003, at 09:46 AM, Clayton Partridge wrote:

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.
_______________________________________________
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.

References: 
 >Safari not passing command key keyboard shortcuts (From: Clayton Partridge <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.