Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoawindow.m @ 4503:524dfefd554c
Added an event when the clipboard is updated, triggered after the window gains the keyboard focus.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 08 Jul 2010 22:54:03 -0700 |
parents | 3d91e31fcf71 |
children | c17ac64abb70 |
comparison
equal
deleted
inserted
replaced
4502:b3540fa08474 | 4503:524dfefd554c |
---|---|
126 | 126 |
127 - (void)windowDidBecomeKey:(NSNotification *)aNotification | 127 - (void)windowDidBecomeKey:(NSNotification *)aNotification |
128 { | 128 { |
129 /* We're going to get keyboard events, since we're key. */ | 129 /* We're going to get keyboard events, since we're key. */ |
130 SDL_SetKeyboardFocus(_data->window); | 130 SDL_SetKeyboardFocus(_data->window); |
131 | |
132 /* Check to see if someone updated the clipboard */ | |
133 Cocoa_CheckClipboardUpdate(_data->videodata); | |
131 } | 134 } |
132 | 135 |
133 - (void)windowDidResignKey:(NSNotification *)aNotification | 136 - (void)windowDidResignKey:(NSNotification *)aNotification |
134 { | 137 { |
135 /* Some other window will get mouse events, since we're not key. */ | 138 /* Some other window will get mouse events, since we're not key. */ |