diff src/video/cocoa/SDL_cocoakeyboard.m @ 3132:88861448961f gsoc2009_IME

Add SDL_TEXTEDTING event to inform application about marked text.
author Jiang Jiang <gzjjgod@gmail.com>
date Wed, 01 Jul 2009 07:33:58 +0000
parents fef1a835af43
children f4e553ec6a62
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoakeyboard.m	Wed Jul 01 05:52:17 2009 +0000
+++ b/src/video/cocoa/SDL_cocoakeyboard.m	Wed Jul 01 07:33:58 2009 +0000
@@ -130,6 +130,8 @@
     _selectedRange = selRange;
     _markedRange = NSMakeRange(0, [aString length]);
 
+    SDL_SendEditingText([aString UTF8String], selRange.location, selRange.length);
+
     NSLog(@"setMarkedText: %@, (%d, %d)", _markedText,
           selRange.location, selRange.length);
 }