mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 16:08:21 +03:00
This commit is contained in:
parent
2e6db908d7
commit
8751c3299f
5
.changes/fix-invoke-devtools-by-hotkey.md
Normal file
5
.changes/fix-invoke-devtools-by-hotkey.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"tauri": patch:bug
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix invoking toggle devtools by hotkey.
|
@ -14,7 +14,7 @@
|
|||||||
document.addEventListener('keydown', (event) => {
|
document.addEventListener('keydown', (event) => {
|
||||||
if (isHotkey(event)) {
|
if (isHotkey(event)) {
|
||||||
window.__TAURI_INTERNALS__.invoke(
|
window.__TAURI_INTERNALS__.invoke(
|
||||||
'plugin:window|internal_toggle_devtools'
|
'plugin:webview|internal_toggle_devtools'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user