1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:37:44 +00:00

Ladybird: Add context menu items to the AppKit chrome to inspect nodes

This commit is contained in:
Timothy Flynn 2023-09-13 20:07:01 -04:00 committed by Andrew Kaster
parent bd1e35c726
commit ece9908070
4 changed files with 85 additions and 0 deletions

View file

@ -149,6 +149,14 @@ static constexpr CGFloat const WINDOW_HEIGHT = 800;
self.inspector_controller = nil;
}
- (void)inspectElement:(id)sender
{
[self openInspector:sender];
auto* inspector = (Inspector*)[self.inspector_controller window];
[inspector inspectHoveredElement];
}
#pragma mark - Private methods
- (TabController*)tabController