Mailing Lists: Apple Mailing Lists

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

Webkit Safari plugin - getting Key Events?



Starting with WebKitCIPlugIn, I create an interactive 3-D display in a Safari window. I've been able to receive and process left and right mouse events by adding NSView methods mouseDown:, mouseDragged, mouseUp:, and the equivalent rightMouse methods. These seem to work pretty well.

However, adding
   - (void)keyDown:(NSEvent *)theEvent
doesn't intercept any keyboard events.

I have also added
   - (BOOL)acceptsFirstResponder, returning YES
so the NSview should be able to get the keyboard events.

However, there are still no calls to my keyDown method.

I've tried to use makeFirstResponder: using self, but that clobbers the plugin.

What am I missing? And any hints on how to debug a Safari plugin?



_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to 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.