mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
5bff4d3081
commit
b6681852cc
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue