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:
parent
bd1e35c726
commit
ece9908070
4 changed files with 85 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue