Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/inspect-hotkey-default.md
Original file line number Diff line number Diff line change
@@ -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).
4 changes: 2 additions & 2 deletions packages/devtools/src/context/devtools-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export type DevtoolsStore = {
openHotkey: Array<KeyboardKey>
/**
* The hotkey to open the source inspector
* @default ["Shift", "CtrlOrMeta"]
* @default ["Shift", "Alt", "CtrlOrMeta"]
*/
inspectHotkey: Array<KeyboardKey>
/**
Expand Down Expand Up @@ -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:
Expand Down
Loading