Skip to content
Permalink
Browse files

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 16360b19793c961030216178c545a54c74e0400e
Showing with 9 additions and 8 deletions.
  1. +9 −8 src/video/cocoa/SDL_cocoawindow.m
@@ -57,6 +57,7 @@ @interface SDLWindow : NSWindow
- (BOOL)canBecomeKeyWindow;
- (BOOL)canBecomeMainWindow;
- (void)sendEvent:(NSEvent *)event;
- (void)doCommandBySelector:(SEL)aSelector;
@end

@implementation SDLWindow
@@ -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


@@ -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;

0 comments on commit 16360b1

Please sign in to comment.