mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
* Gorm.m: Inspector's shortcuts now work across the application.
This commit is contained in:
parent
19f5483025
commit
3aaaec8ccc
1 changed files with 17 additions and 0 deletions
17
Gorm.m
17
Gorm.m
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue