diff --git a/src/video/cocoa/SDL_cocoakeyboard.m b/src/video/cocoa/SDL_cocoakeyboard.m index be5de9641..8dcabd150 100644 --- a/src/video/cocoa/SDL_cocoakeyboard.m +++ b/src/video/cocoa/SDL_cocoakeyboard.m @@ -380,6 +380,7 @@ Cocoa_HandleKeyEvent(_THIS, NSEvent *event) text = [[event characters] UTF8String]; if(text && *text) { SDL_SendKeyboardText(data->keyboard, text); + [data->fieldEdit setString:@""]; } } break;