1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Ladybird: Allow right clicking and inspecting elements

This adds "Inspect Element" (currently the only entry) to the context
menu for the page, which will do what you expect (most of the time),
and bring up the Inspector with hovered element selected.
This commit is contained in:
MacDue 2023-05-08 21:15:35 +01:00 committed by Andreas Kling
parent 15211cd753
commit 09773048b6
7 changed files with 101 additions and 9 deletions

View file

@ -93,7 +93,12 @@ public:
void did_get_js_console_messages(i32 start_index, Vector<DeprecatedString> message_types, Vector<DeprecatedString> messages);
void show_js_console();
void show_inspector();
enum class InspectorTarget {
Document,
HoveredElement
};
void show_inspector(InspectorTarget = InspectorTarget::Document);
Ladybird::ConsoleWidget* console() { return m_console_widget; };