Tiny change in keyDown to accomplish the change in NSApplication

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5029 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-10-18 22:49:29 +00:00
parent 5bff4d3081
commit b6681852cc

View file

@ -1259,7 +1259,7 @@ static NSRecursiveLock *windowsLock;
if (key_code == 0x1b)
{
NSApplication *app = [NSApplication sharedApplication];
if ([app isRunningModalForWindow: self])
if ([app modalWindow] == self)
{
// NB: The following *never* returns.
[app abortModal];