mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:57:35 +00:00
Ladybird: Implement the View Source action for the AppKit chrome
This opens a new tab to display the current tab's source as HTML.
This commit is contained in:
parent
a6bdf8c2a9
commit
390da2985f
4 changed files with 43 additions and 0 deletions
|
@ -158,6 +158,11 @@ enum class IsHistoryNavigation {
|
|||
[self updateNavigationButtonStates];
|
||||
}
|
||||
|
||||
- (void)viewSource:(id)sender
|
||||
{
|
||||
[[[self tab] web_view] viewSource];
|
||||
}
|
||||
|
||||
- (void)focusLocationToolbarItem
|
||||
{
|
||||
[self.window makeFirstResponder:self.location_toolbar_item.view];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue