Author: mlytwyn Date: Thu Apr 13 19:36:28 2017 New Revision: 40474 URL: http://svn.gna.org/viewcvs/gnustep?rev=40474&view=rev Log: Attempt to fix incorrect 'W' key closing window
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m URL: http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m?rev=40474&r1=40473&r2=40474&view=diff ============================================================================== --- libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m (original) +++ libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m Thu Apr 13 19:36:28 2017 @@ -3576,22 +3576,8 @@ // FIXME: Why is this here, is the code still needed or a left over hack? // Try to process the event as a key equivalent // without Command having being pressed - { - NSEvent *new_event - = [NSEvent keyEventWithType: [theEvent type] - location: NSZeroPoint - modifierFlags: ([theEvent modifierFlags] | NSCommandKeyMask) - timestamp: [theEvent timestamp] - windowNumber: [theEvent windowNumber] - context: [theEvent context] - characters: characters - charactersIgnoringModifiers: [theEvent - charactersIgnoringModifiers] - isARepeat: [theEvent isARepeat] - keyCode: [theEvent keyCode]]; - if ([self performKeyEquivalent: new_event]) - return; - } + if ([self performKeyEquivalent: new_event]) + return; // Otherwise, pass the event up [super keyDown: theEvent]; _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs