Improved style
This commit is contained in:
parent
a348428476
commit
1bfc735a9e
@ -253,7 +253,8 @@
|
|||||||
// custom OpenGL view. See -[SFOpenGLView sfKeyUp:] for more details.
|
// custom OpenGL view. See -[SFOpenGLView sfKeyUp:] for more details.
|
||||||
|
|
||||||
id firstResponder = [[anEvent window] firstResponder];
|
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
|
// It's either not a key up event or no responder has a sfKeyUp
|
||||||
// message implemented.
|
// message implemented.
|
||||||
[super sendEvent:anEvent];
|
[super sendEvent:anEvent];
|
||||||
|
Loading…
Reference in New Issue
Block a user