* Gorm.m: Inspector's shortcuts now work across the application.

This commit is contained in:
Sergii Stoian 2020-01-06 01:55:40 +02:00
parent 19f5483025
commit 3aaaec8ccc

17
Gorm.m
View file

@ -81,6 +81,23 @@
return [[NSDocumentController sharedDocumentController] currentDocument];
}
/*
NSApplication override to make Inspector's shortcuts available globally
*/
- (void) sendEvent: (NSEvent *)theEvent
{
if ([theEvent type] == NSKeyDown)
{
NSPanel *inspector = [[self inspectorsManager] panel];
if ([inspector performKeyEquivalent: theEvent] != NO)
{
[inspector orderFront: self];
return;
}
}
[super sendEvent: theEvent];
}
/*
NSApp
*/