MacPDF: Make Debug menu work when sidebar has focus

This commit is contained in:
Nico Weber authored and Andrew Kaster committed 2024-01-15 23:24:07 -07:00
1 parent a4b5b9e82a
commit a7fbb7fd0b
2 files changed
+13

No files matched your search

@@ -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;
@@ -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];