1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09: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:
Timothy Flynn 2023-08-28 16:16:12 -04:00 committed by Tim Flynn
parent a6bdf8c2a9
commit 390da2985f
4 changed files with 43 additions and 0 deletions

View file

@ -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];