Skip to content

fix(settings): emit prefs-changed event from setShortcuts and resetSh…#252

Open
AnayDhawan wants to merge 1 commit into
crynta:mainfrom
AnayDhawan:fix/shortcuts-cross-window-sync
Open

fix(settings): emit prefs-changed event from setShortcuts and resetSh…#252
AnayDhawan wants to merge 1 commit into
crynta:mainfrom
AnayDhawan:fix/shortcuts-cross-window-sync

Conversation

@AnayDhawan
Copy link
Copy Markdown

@AnayDhawan AnayDhawan commented May 14, 2026

What

setShortcuts and resetShortcuts wrote to the store directly without calling writePref, so they never emitted terax://prefs-changed. Every other preference setter uses writePref which fires the event.

Why

Without the event, shortcut changes made in the settings webview never propagate to the main window until restart.

How

Route both functions through writePref like all other setters.

Testing

  • pnpm exec tsc --noEmit clean
  • onPreferencesChange already maps KEY_SHORTCUTS — listener side was correct, only the emit was missing

@AnayDhawan AnayDhawan requested a review from crynta as a code owner May 14, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant