mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:28:11 +00:00
MacPDF: Make Debug menu work when sidebar has focus
This commit is contained in:
parent
a4b5b9e82a
commit
a7fbb7fd0b
2 changed files with 13 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue