Home

xmn / bettertrumpet

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

fix: Stack toast notifications properly when switching devices rapidly

last month

61b519f
Authored
xammen8/23/2026, 3:09:17 PM
- Add ToastNotificationManager to handle toast positioning and stacking
- Replace native Windows notifications with custom stacked toasts
- Add AnimateToPosition method for smooth repositioning when toasts close
- Disable WebView2 browser shortcuts (AreBrowserAcceleratorKeysEnabled=false)
- Use global keydown listener with capture phase for reliable hotkey recording

Fixes:
- Multiple device switch notifications now stack vertically instead of overlapping
- Toasts animate smoothly upward when lower toasts disappear
- Hotkey recording no longer requires spamming keys
- Ctrl+F and other browser shortcuts can now be used as hotkeys

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

Parent8ce76e1

5 files changed
  • EarTrumpet/SettingsWeb/src/SettingsPages.tsx+59−23
  • EarTrumpet/UI/Helpers/ShellNotifyIcon.cs+5−10
  • EarTrumpet/UI/Views/ToastNotification.xaml.cs+14−0
  • EarTrumpet/UI/Views/ToastNotificationManager.cs+97−0
  • EarTrumpet/UI/Views/WebSettingsWindow.xaml.cs+4−0