Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoaevents.m @ 3129:e42873b9c6f1 gsoc2009_IME
Basic marked text handling
author | Jiang Jiang <gzjjgod@gmail.com> |
---|---|
date | Sun, 31 May 2009 16:57:29 +0000 |
parents | 05d83835f41b |
children |
comparison
equal
deleted
inserted
replaced
3128:05d83835f41b | 3129:e42873b9c6f1 |
---|---|
193 Cocoa_HandleKeyEvent(_this, event); | 193 Cocoa_HandleKeyEvent(_this, event); |
194 /* Fall through to pass event to NSApp; er, nevermind... */ | 194 /* Fall through to pass event to NSApp; er, nevermind... */ |
195 /* FIXME: Find a way to stop the beeping, using delegate */ | 195 /* FIXME: Find a way to stop the beeping, using delegate */ |
196 | 196 |
197 /* Add to support system-wide keyboard shortcuts like CMD+Space */ | 197 /* Add to support system-wide keyboard shortcuts like CMD+Space */ |
198 if ([event modifierFlags] & NSCommandKeyMask) | 198 if (([event modifierFlags] & NSCommandKeyMask) || [event type] == NSFlagsChanged) |
199 [NSApp sendEvent: event]; | 199 [NSApp sendEvent: event]; |
200 break; | 200 break; |
201 default: | 201 default: |
202 [NSApp sendEvent:event]; | 202 [NSApp sendEvent:event]; |
203 break; | 203 break; |