diff --git a/.changeset/inspect-hotkey-default.md b/.changeset/inspect-hotkey-default.md new file mode 100644 index 00000000..2d21c3f2 --- /dev/null +++ b/.changeset/inspect-hotkey-default.md @@ -0,0 +1,5 @@ +--- +'@tanstack/devtools': patch +--- + +Changed default `inspectHotkey` from `["Shift", "CtrlOrMeta"]` to `["Shift", "Alt", "CtrlOrMeta"]` to avoid conflicts with browser shortcuts (Ctrl/Cmd + Shift + Click opens links in new tabs). diff --git a/packages/devtools/src/context/devtools-store.ts b/packages/devtools/src/context/devtools-store.ts index 94e20032..5e3b4f0f 100644 --- a/packages/devtools/src/context/devtools-store.ts +++ b/packages/devtools/src/context/devtools-store.ts @@ -54,7 +54,7 @@ export type DevtoolsStore = { openHotkey: Array /** * The hotkey to open the source inspector - * @default ["Shift", "CtrlOrMeta"] + * @default ["Shift", "Alt", "CtrlOrMeta"] */ inspectHotkey: Array /** @@ -100,7 +100,7 @@ export const initialState: DevtoolsStore = { position: 'bottom-right', panelLocation: 'bottom', openHotkey: ['Control', '~'], - inspectHotkey: ['Shift', 'CtrlOrMeta'], + inspectHotkey: ['Shift', 'Alt', 'CtrlOrMeta'], requireUrlFlag: false, urlFlag: 'tanstack-devtools', theme: