Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoakeyboard.m @ 4435:e953700da4ca
Minor cleanup on Jiang's patch
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 15 Apr 2010 22:27:01 -0700 |
parents | 5c64052fb476 |
children | d3c193100522 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoakeyboard.m Thu Apr 15 22:14:26 2010 -0700 +++ b/src/video/cocoa/SDL_cocoakeyboard.m Thu Apr 15 22:27:01 2010 -0700 @@ -638,13 +638,14 @@ * than one copy. When we switched to another window and requesting for * text input, simply remove the field editor from its superview then add * it to the front most window's content view */ - if (! data->fieldEdit) + if (!data->fieldEdit) { data->fieldEdit = [[SDLTranslatorResponder alloc] initWithFrame: NSMakeRect(0.0, 0.0, 0.0, 0.0)]; + } [data->fieldEdit setKeyboard: data->keyboard]; - if (! [[data->fieldEdit superview] isEqual: parentView]) + if (![[data->fieldEdit superview] isEqual: parentView]) { // DEBUG_IME(@"add fieldEdit to window contentView"); [data->fieldEdit removeFromSuperview];