super-productivity/electron/task-widget
Symon Baikov e0be3a1a16
Feat/task widget global shortcut (#7099)
* feat(electron): add global shortcut for task widget toggle

Adds a configurable global shortcut (`globalToggleTaskWidget`) that
shows/hides the task widget without changing the persisted
enabled/disabled preference. The shortcut is a no-op while the task
widget feature is disabled.

When the user reveals the widget via the shortcut while the main window
is visible, a sticky "user-forced visible" flag keeps it up (like
always-show) instead of letting the next focus/show event immediately
hide it. The flag clears when the user toggles the widget off, opens the
app from the widget, or the feature is disabled.

Rebased onto master to drop the now-superseded tray-indicator refactor;
the only main-window.ts change is the additive user-forced-visible gate.

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

* fix(electron): handle task widget shortcut races

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 16:11:16 +02:00
..
task-widget-api.d.ts refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
task-widget-preload.ts refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
task-widget-renderer.ts refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
task-widget.css refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
task-widget.html refactor: rename overlay-indicator to task-widget 2026-03-30 22:00:47 +02:00
task-widget.ts Feat/task widget global shortcut (#7099) 2026-06-09 16:11:16 +02:00