mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
LibWebView+UI: Generate action to enable/disable DevTools
This commit is contained in:
parent
6d30b0f4d4
commit
14d49d5a3a
Notes:
github-actions[bot]
2025-09-18 11:28:44 +00:00
Author: https://github.com/trflynn89
Commit: 14d49d5a3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6221
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/konradekk
13 changed files with 121 additions and 112 deletions
|
@ -114,6 +114,14 @@ static void initialize_native_control(WebView::Action& action, QAction& qaction,
|
|||
qaction.setIcon(load_icon_from_uri("resource://icons/16x16/settings.png"sv));
|
||||
qaction.setShortcut(QKeySequence::StandardKey::Preferences);
|
||||
break;
|
||||
case WebView::ActionID::ToggleDevTools:
|
||||
qaction.setIcon(load_icon_from_uri("resource://icons/browser/dom-tree.png"sv));
|
||||
qaction.setShortcuts({
|
||||
QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_I),
|
||||
QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_C),
|
||||
QKeySequence(Qt::Key_F12),
|
||||
});
|
||||
break;
|
||||
case WebView::ActionID::ViewSource:
|
||||
qaction.setIcon(load_icon_from_uri("resource://icons/16x16/filetype-html.png"sv));
|
||||
qaction.setShortcut(QKeySequence(Qt::CTRL | Qt::Key_U));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue