fix: correct invoke command for toggling devtools by hotkey, closes #8771 (#8793)

This commit is contained in:
Jason Tsai 2024-02-06 18:41:54 +08:00 committed by GitHub
parent 2e6db908d7
commit 8751c3299f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch:bug
---
Fix invoking toggle devtools by hotkey.

View File

@ -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'
)
}
})