diff --git a/.changes/fix-invoke-devtools-by-hotkey.md b/.changes/fix-invoke-devtools-by-hotkey.md new file mode 100644 index 000000000..33fb31311 --- /dev/null +++ b/.changes/fix-invoke-devtools-by-hotkey.md @@ -0,0 +1,5 @@ +--- +"tauri": patch:bug +--- + +Fix invoking toggle devtools by hotkey. diff --git a/core/tauri/src/webview/scripts/toggle-devtools.js b/core/tauri/src/webview/scripts/toggle-devtools.js index 3ca8d656b..25d201410 100644 --- a/core/tauri/src/webview/scripts/toggle-devtools.js +++ b/core/tauri/src/webview/scripts/toggle-devtools.js @@ -14,7 +14,7 @@ document.addEventListener('keydown', (event) => { if (isHotkey(event)) { window.__TAURI_INTERNALS__.invoke( - 'plugin:window|internal_toggle_devtools' + 'plugin:webview|internal_toggle_devtools' ) } })