mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +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:
		
							parent
							
								
									15211cd753
								
							
						
					
					
						commit
						09773048b6
					
				
					 7 changed files with 101 additions and 9 deletions
				
			
		|  | @ -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; }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 MacDue
						MacDue