comparison src/video/cocoa/SDL_cocoakeyboard.m @ 4637:8c229370ddba

Fix for deleting the last uncommit character
author Jjgod Jiang <gzjjgod@gmail.com>
date Thu, 12 Aug 2010 16:00:47 +0200
parents e2d46c5c7483
children c24ba2cc9583
comparison
equal deleted inserted replaced
4636:b196d2758026 4637:8c229370ddba
142 142
143 - (void) unmarkText 143 - (void) unmarkText
144 { 144 {
145 [_markedText release]; 145 [_markedText release];
146 _markedText = nil; 146 _markedText = nil;
147
148 SDL_SendEditingText("", 0, 0);
147 } 149 }
148 150
149 - (NSRect) firstRectForCharacterRange: (NSRange) theRange 151 - (NSRect) firstRectForCharacterRange: (NSRange) theRange
150 { 152 {
151 NSWindow *window = [self window]; 153 NSWindow *window = [self window];