Home

xmn / bettertrumpet

publicxammen/BetterTrumpet· sync paused
Overview Code History Branches Pull requestsIssuesInsights
master
HomeOverview Code PRsIssues

fix: hotkey binding state bugs — cleanup on unmount, prevent stuck paused state

last month

b19251a
Authored
xammen8/23/2026, 2:41:26 PM
- Add useEffect cleanup to unpause hotkeys and end capture on unmount
- Track recording state via ref to prevent stale closure bugs in onBlur
- Fix race condition where clicking between buttons left hotkeys paused
- Add missing showDeviceSwitchNotification to SettingKey type
- Pass setSetting prop to ShortcutsPage for ToggleRow

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Parent4c882f5

2 files changed
  • EarTrumpet/SettingsWeb/src/SettingsPages.tsx+66−8
  • EarTrumpet/SettingsWeb/src/types.ts+1−0