src/video/cocoa/SDL_cocoakeyboard.m
changeset 4435 e953700da4ca
parent 4434 5c64052fb476
child 4436 d3c193100522
     1.1 --- a/src/video/cocoa/SDL_cocoakeyboard.m	Thu Apr 15 22:14:26 2010 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoakeyboard.m	Thu Apr 15 22:27:01 2010 -0700
     1.3 @@ -638,13 +638,14 @@
     1.4       * than one copy. When we switched to another window and requesting for
     1.5       * text input, simply remove the field editor from its superview then add
     1.6       * it to the front most window's content view */
     1.7 -    if (! data->fieldEdit)
     1.8 +    if (!data->fieldEdit) {
     1.9          data->fieldEdit =
    1.10              [[SDLTranslatorResponder alloc] initWithFrame: NSMakeRect(0.0, 0.0, 0.0, 0.0)];
    1.11 +    }
    1.12  
    1.13      [data->fieldEdit setKeyboard: data->keyboard];
    1.14  
    1.15 -    if (! [[data->fieldEdit superview] isEqual: parentView])
    1.16 +    if (![[data->fieldEdit superview] isEqual: parentView])
    1.17      {
    1.18          // DEBUG_IME(@"add fieldEdit to window contentView");
    1.19          [data->fieldEdit removeFromSuperview];