mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-23 06:55:52 +00:00
Fixed: When closing a panel with escape, the delegates are not called
Previously, when closing a panel or popover with escape, the different delegates weren't called. Now it does.
This commit is contained in:
1 parent
ce86c757cd
commit
148f3172e6
1 file changed
+4
-3
@@ -51,6 +51,7 @@
|
||||
@class CPMenu
|
||||
@class CPProgressIndicator
|
||||
@class CPPanel
|
||||
@class _CPPopoverWindow
|
||||
|
||||
@global CPApp
|
||||
|
||||
@@ -1798,14 +1799,14 @@ CPTexturedBackgroundWindowMask
|
||||
}
|
||||
else if ([anEvent charactersIgnoringModifiers] === CPEscapeFunctionKey && [self isKindOfClass:[CPPanel class]])
|
||||
{
|
||||
if ([self respondsToSelector:@selector(closeOnBlur)])
|
||||
if ([self isKindOfClass:[_CPPopoverWindow class]])
|
||||
{
|
||||
if ([self closeOnBlur])
|
||||
[self close];
|
||||
[[self delegate] performClose:self];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self close];
|
||||
[self performClose:self];
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user