1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

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
2 changed files with 13 additions and 0 deletions

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