I have a (perhaps) similar problem with a small "utility" window
that contains a couple of buttons. The window has kEventControlHit
and kEventRawKeyDown event handers. I wanted to have the buttons
respond to the keyboard (they work fine with the mouse). If I
simply switch the window type to Modal or Floating in the nib file,
then my Event Handler works fine. However, I make it a utility
window, then another window in my application gets the keyboard
event, even though it is behind the utility window. Calling
SetUserFocusWindow doesn't seem to help.
You might double-check that your utility window is really the user
focus window at the time of the keyboard event, by calling
GetUserFocusWindow. It sounds like the user focus has moved off the
utility window after you put it there.
I guess I don't really understand the concept of "utility window.
A utility window is just a floating window that floats above windows
of all applications and remains visible even when its owning
application is not active.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden