MacPDF: Make Debug menu work when sidebar has focus

This commit is contained in:
Nico Weber 2024-01-15 21:55:11 -05:00 committed by Andrew Kaster
parent a4b5b9e82a
commit a7fbb7fd0b
Notes: sideshowbarker 2024-07-18 08:59:31 +09:00
2 changed files with 13 additions and 0 deletions

View file

@ -21,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN
- (IBAction)goToNextPage:(id)sender;
- (IBAction)goToPreviousPage:(id)sender;
- (IBAction)toggleShowClippingPaths:(id)sender;
- (IBAction)showGoToPageDialog:(id)sender;
- (void)pdfDidInitialize;

View file

@ -132,6 +132,18 @@
[_pdfView goToPreviousPage:sender];
}
- (BOOL)validateMenuItem:(NSMenuItem*)item
{
if ([_pdfView validateMenuItem:item])
return YES;
return [super validateMenuItem:item];
}
- (IBAction)toggleShowClippingPaths:(id)sender
{
[_pdfView toggleShowClippingPaths:sender];
}
- (IBAction)showGoToPageDialog:(id)sender
{
auto alert = [[NSAlert alloc] init];