mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Merge 085275a32e
into 1798e879b2
This commit is contained in:
commit
d8229bd073
2 changed files with 23 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
NSIcon = "Gorm.tiff";
|
||||
NSMainNibFile = "Gorm.gorm";
|
||||
NSPrincipalClass = "NSApplication";
|
||||
NSPrincipalClass = "Gorm";
|
||||
NSRole = "Editor";
|
||||
|
||||
NSTypes = (
|
||||
|
|
Loading…
Reference in a new issue