Skip to content

Commit

Permalink
fix: correct invoke command for toggling devtools by hotkey, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
pewsheen committed Feb 6, 2024
1 parent 2e6db90 commit 8751c32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-invoke-devtools-by-hotkey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Fix invoking toggle devtools by hotkey.
2 changes: 1 addition & 1 deletion core/tauri/src/webview/scripts/toggle-devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
}
})
Expand Down

0 comments on commit 8751c32

Please sign in to comment.