This commit is contained in:
Sergii Stoian 2025-04-19 08:05:18 +00:00 committed by GitHub
commit d8229bd073
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 1 deletions

View file

@ -33,6 +33,28 @@
#import "GormAppDelegate.h"
#import "GormLanguageViewController.h"
@interface Gorm : NSApplication
@end
@implementation Gorm
/*
NSApplication override to make Inspector's shortcuts available globally
*/
- (void) sendEvent: (NSEvent *)theEvent
{
if ([theEvent type] == NSKeyDown)
{
NSPanel *inspector = [[_delegate inspectorsManager] panel];
if ([inspector performKeyEquivalent: theEvent] != NO)
{
[inspector orderFront: self];
return;
}
}
[super sendEvent: theEvent];
}
@end
@interface GormDocument (Private)
- (NSMutableArray *) _collectAllObjects;

View file

@ -1,7 +1,7 @@
{
NSIcon = "Gorm.tiff";
NSMainNibFile = "Gorm.gorm";
NSPrincipalClass = "NSApplication";
NSPrincipalClass = "Gorm";
NSRole = "Editor";
NSTypes = (