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: 10.1.3 ReceiveNextEvent gets '\0' for rawKeyDown



On Thursday, February 28, 2002, at 04:56 PM, Dan Herman wrote:

On Thursday, February 28, 2002, at 02:46 PM, Eric Schlegel wrote:

We think it only happens if:

the app's main event loop uses WNE

I'm using RAEL and it's happing to me. [see original post] If you want more details, let me know off list.

Hmm...just got 10.1.3 installed and my app (based on RAEL) works a-ok.

I install carbon event handlers for a few events to include kEventRawKeyDown, kEventRawKeyRepeat and kEventRawKeyModifiersChanged. All are working well.

Also, I have a line of code at the end of my kEventMouseDown handler on my content window which does:

result = ::SetUserFocusWindow (aWindow);

where aWindow is the WindowRef of my main window.

The reason I did this was to ensure that keyboard events would always get routed to my content window and not to my blanking windows (in case users would click on the blanking window). In looking at this though, it's kinda dumb...I should just put this call in the blanking window's mouseDown handler.

Anyhow, not sure if lack of focus would have anything to do with the problems you are seeing. Seems like the problem is a bit lower in the actual event system itself.

___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Founder & President
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: 10.1.3 ReceiveNextEvent gets '\0' for rawKeyDown (From: Dan Herman <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.