Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
strikerlulu opened this issue Apr 10, 2025 · 1 comment
Open

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

strikerlulu opened this issue Apr 10, 2025 · 1 comment

Comments

@strikerlulu
Copy link

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.

@pimterry
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants