mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
MacPDF: Make Debug menu work when sidebar has focus
This commit is contained in:
parent
a4b5b9e82a
commit
a7fbb7fd0b
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/a7fbb7fd0b Pull-request: https://github.com/SerenityOS/serenity/pull/22791
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…
Reference in a new issue