Improved style

This commit is contained in:
Marco Antognini 2014-04-17 09:20:06 +02:00
parent a348428476
commit 1bfc735a9e

View File

@ -253,7 +253,8 @@
// custom OpenGL view. See -[SFOpenGLView sfKeyUp:] for more details.
id firstResponder = [[anEvent window] firstResponder];
if (([anEvent type] != NSKeyUp) || (![firstResponder tryToPerform:@selector(sfKeyUp:) with:anEvent])) {
if (([anEvent type] != NSKeyUp) || (![firstResponder tryToPerform:@selector(sfKeyUp:) with:anEvent]))
{
// It's either not a key up event or no responder has a sfKeyUp
// message implemented.
[super sendEvent:anEvent];