Skip navigation.
 
mlSpace Bar Event
FROM : Keith Duncan
DATE : Wed Jan 02 21:59:43 2008

This seems like it should be trivial but I can't find an elegant 
solution. I need to detect the space bar being pushed.

I've searched the archives and other than performing !
NSEqualRanges([[event characters] rangeOfString:@" "], (NSRange){0, 
0}) there doesn't seem to be any other way of reliably detecting it.

There is no unicode defined for it in the NSEvent header and there is 
no NSResponder method either. There must be a better way of doing this.

Keith

Related mailsAuthorDate
mlSpace Bar Event Keith Duncan Jan 2, 21:59
mlRe: Space Bar Event j o a r Jan 2, 22:11