Skip to content

Global shortcut should toggle the tray flyout like a tray-icon click #184

Description

@shirafukayayoi

Summary

The global shortcut currently opens/focuses the full PopOut dashboard, while a left-click on the tray icon toggles the dedicated tray flyout. It would be more consistent for the shortcut to perform the same action as the tray-icon left-click.

Current behavior

In apps/desktop-tauri/src-tauri/src/shortcut_bridge.rs, the shortcut handler calls:

shell::reopen_to_target(
    app,
    crate::surface::SurfaceMode::PopOut,
    crate::surface_target::SurfaceTarget::Dashboard,
    None,
)

This opens the main PopOut window.

Expected behavior

Pressing the configured global shortcut should toggle the dedicated tray flyout using the same path as the tray-icon left-click:

shell::flyout_window::toggle_with_blur_consume(app, None);

That would provide the following behavior:

  • First press opens the tray flyout.
  • Second press closes it.
  • Positioning and blur-dismiss behavior stay consistent with tray-icon interaction.
  • The full window remains available from Show Window.

Affected areas

  • Global shortcut
  • Tray flyout
  • Startup/background behavior

Suggested validation

  1. Configure a global shortcut in Settings.
  2. Press it while the flyout is closed; verify the tray flyout opens.
  3. Press it again; verify the flyout closes.
  4. Verify tray-icon left-click still behaves identically.
  5. Verify click-outside dismissal and the Show Window menu action are unchanged.

Tested/reproduced conceptually against the current main implementation and Win-CodexBar v0.42.0 on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions