1 /***************************************************************************
5 Created by Gil Pedersen on Wed April 21 2004.
6 Copyright (c) 2004 Gil Pedersen.
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. See also the license.txt file for *
15 * additional informations. *
17 ***************************************************************************/
19 #import "PluginWindow.h"
21 @implementation NetSfPeopsSoftGPUPluginWindow
23 - (BOOL)windowShouldClose:(id)sender
25 [[NSNotificationCenter defaultCenter] postNotificationName:@"emuWindowDidClose" object:self];
30 - (void)sendEvent:(NSEvent *)theEvent
32 int type = [theEvent type];
33 if (type == NSKeyDown || type == NSKeyUp) {
34 if (type == NSKeyDown && [theEvent keyCode] == 53 /* escape */) {
35 // reroute to menu event
36 [[NSApp mainMenu] performKeyEquivalent:theEvent];
39 // ignore all key Events
43 [super sendEvent:theEvent];