LibWebView+UI: Generate action to enable/disable DevTools

This commit is contained in:
Timothy Flynn
2025-09-17 10:03:01 -04:00
committed by Tim Flynn
parent 6d30b0f4d4
commit 14d49d5a3a
Notes: github-actions[bot] 2025-09-18 11:28:44 +00:00
13 changed files with 121 additions and 112 deletions

View File

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