mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWebView+UI: Generate action to enable/disable DevTools
This commit is contained in:
Notes:
github-actions[bot]
2025-09-18 11:28:44 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/14d49d5a3a0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6221 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/konradekk
@@ -155,6 +155,10 @@ static void initialize_native_control(WebView::Action& action, id control)
|
||||
set_control_image(control, @"gearshape");
|
||||
[control setKeyEquivalent:@","];
|
||||
break;
|
||||
case WebView::ActionID::ToggleDevTools:
|
||||
set_control_image(control, @"chevron.left.chevron.right");
|
||||
[control setKeyEquivalent:@"I"];
|
||||
break;
|
||||
case WebView::ActionID::ViewSource:
|
||||
set_control_image(control, @"text.document");
|
||||
[control setKeyEquivalent:@"u"];
|
||||
|
||||
Reference in New Issue
Block a user