Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed escape cancelling fullscreen mode now that the SDL window is th…
…e first res

ponder.
  • Loading branch information
slouken committed Jun 4, 2014
1 parent a2085da commit 16360b1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -57,6 +57,7 @@ @interface SDLWindow : NSWindow
- (BOOL)canBecomeKeyWindow;
- (BOOL)canBecomeMainWindow;
- (void)sendEvent:(NSEvent *)event;
- (void)doCommandBySelector:(SEL)aSelector;
@end

@implementation SDLWindow
Expand Down Expand Up @@ -87,6 +88,14 @@ - (void)sendEvent:(NSEvent *)event
[delegate windowDidFinishMoving];
}
}

/* We'll respond to selectors by doing nothing so we don't beep.
* The escape key gets converted to a "cancel" selector, etc.
*/
- (void)doCommandBySelector:(SEL)aSelector
{
/*NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));*/
}
@end


Expand Down Expand Up @@ -654,14 +663,6 @@ - (void)keyUp:(NSEvent *)theEvent
/*Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);*/
}

/* We'll respond to selectors by doing nothing so we don't beep.
* The escape key gets converted to a "cancel" selector, etc.
*/
- (void)doCommandBySelector:(SEL)aSelector
{
/*NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));*/
}

- (void)mouseDown:(NSEvent *)theEvent
{
int button;
Expand Down

0 comments on commit 16360b1

Please sign in to comment.