Bug fix. Key events were not being passed in full screen mode,

because the window, having been minimised, is no longer 'Key.'
This commit is contained in:
nigel 2002-03-18 10:48:25 +00:00
parent b8ffa860a2
commit abbc3cc253

View File

@ -150,11 +150,12 @@
if ( tmp < [emulators count] ) // i.e. if we exited the for loop
#else
if ( [theEmulator isRunning] && [[theEmulator window] isKeyWindow ] )
if ( FULLSCREEN ||
[theEmulator isRunning] && [[theEmulator window] isKeyWindow ] )
#endif
{
view = [theEmulator screen];
NSLog(@"Got a key event - %d\n", [event keyCode]);
switch ( type )
{
case NSKeyUp: