From 30bb40b037ee3c7e55b36fb363dbcc1aa786fe53 Mon Sep 17 00:00:00 2001 From: JamesGoslings <3248175240@qq.com> Date: Wed, 22 Apr 2026 17:58:40 +0800 Subject: [PATCH] feat: add keyboard shortcut (Alt+Shift+C) to toggle Component Inspector Closes #1058 - Add Alt(Option)+Shift+C shortcut in overlay to toggle Component Inspector - Add the same shortcut in client (DevTools iframe) via RPC - Show the shortcut in the button tooltips --- packages/client/src/App.vue | 4 ++++ packages/overlay/src/App.vue | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/client/src/App.vue b/packages/client/src/App.vue index a56b94992..569314d24 100644 --- a/packages/client/src/App.vue +++ b/packages/client/src/App.vue @@ -51,6 +51,10 @@ watch(devtoolsReady, (v) => { useEventListener('keydown', (e) => { if (e.code === 'KeyD' && e.altKey && e.shiftKey) rpc.value.emit('toggle-panel') + if (e.code === 'KeyC' && e.altKey && e.shiftKey && vueInspectorDetected.value) { + rpc.value.emit('toggle-panel', false) + rpc.value.enableVueInspector() + } }) watchEffect(() => { diff --git a/packages/overlay/src/App.vue b/packages/overlay/src/App.vue index a76137282..c7b482443 100644 --- a/packages/overlay/src/App.vue +++ b/packages/overlay/src/App.vue @@ -1,7 +1,7 @@