We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b5cfb5 commit d50efa7Copy full SHA for d50efa7
packages/devtools/client/app.vue
@@ -47,7 +47,7 @@ watch(
47
{ immediate: true },
48
)
49
50
-addEventListener('keydown', (e) => {
+useEventListener('keydown', (e) => {
51
if (e.code === 'KeyD' && e.altKey) {
52
client.value?.devtools.close()
53
e.preventDefault()
packages/devtools/src/runtime/plugins/view/client.ts
@@ -278,7 +278,7 @@ export async function setupDevToolsClient({
278
document.body.appendChild(holder)
279
280
// Shortcut to toggle devtools
281
- addEventListener('keydown', (e) => {
+ window.addEventListener('keydown', (e) => {
282
if (e.code === 'KeyD' && e.altKey && e.shiftKey)
283
client.devtools.toggle()
284
})
0 commit comments