Skip to content

Option to Disable Close Window Shortcut or Modify its Behavior #731

@strikerlulu

Description

@strikerlulu

Description

Currently, the close window shortcut (likely Ctrl+W/Command+W) closes the entire HTTP Toolkit application instead of just the active "Send Request" tab. This behavior is inconsistent with standard practices in browsers and editors, where this shortcut typically closes only the current tab while keeping the application running.

Proposed Solution

Add a configurable option that allows users to either:

  1. Disable the close window shortcut completely, or
  2. Modify its behavior to close only the current "Send Request" tab instead of the entire application

Use Case

When working with multiple request tabs simultaneously, accidentally pressing the close shortcut results in losing the entire workspace rather than just closing the current tab, causing workflow disruption and potential data loss.

Expected Behavior

  • When the option is enabled: The close window shortcut (Ctrl+W) should only close the current active tab
  • Add this option to the application settings with appropriate documentation

Additional Context

This aligns HTTP Toolkit's behavior with standard patterns in browsers (Chrome, Firefox) and editors (VS Code, etc.) where Ctrl+W closes the current tab, and a different shortcut (typically Alt+F4) closes the application.

Image Image

Does this affect you too? Click below and add a 👍 to vote for this and help decide where HTTP Toolkit goes next, or go vote on the other most popular ideas so far.

Activity

pimterry

pimterry commented on Apr 11, 2025

@pimterry
Member

Sure, that makes sense. Looking at VS Code on Mac, it seems it uses Ctrl/Cmd+Shift+W to close a window, with Ctrl/Cmd+W closing a single tab. That seems reasonable.

Do you want to open a PR? The desktop shell and its menu & shortcuts etc are defined in https://github.com/httptoolkit/httptoolkit-desktop/. Once the shortcuts are changed there so they don't conflict, it'll be possible to add the close-send-tab shortcut in the UI itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @pimterry@strikerlulu

        Issue actions

          Option to Disable Close Window Shortcut or Modify its Behavior · Issue #731 · httptoolkit/httptoolkit