[GH-ISSUE #4835] [feature]: Close currently active request tab with CTRL/CMD + W inside desktop app just like browsers do #1817

Closed
opened 2026-03-16 21:53:22 +03:00 by kerem · 4 comments
Owner

Originally created by @LordSimal on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4835

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Don't know if its possible for you or not, but at least inside the desktop app it would be great, If I could close the currently active tab with CTRL/CMD + W just like you can do inside a browser to close the current tab.

Of course this won't work inside the browser version, since you probably can't overwrite/overrule a browser native shortcude.

Why should this be worked on?

It would behave the same as a browser 😁

Originally created by @LordSimal on GitHub (Mar 5, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4835 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Summary Don't know if its possible for you or not, but at least inside the desktop app it would be great, If I could close the currently active tab with `CTRL/CMD + W` just like you can do inside a browser to close the current tab. Of course this won't work inside the browser version, since you probably can't overwrite/overrule a browser native shortcude. ### Why should this be worked on? It would behave the same as a browser 😁
kerem 2026-03-16 21:53:22 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@MC-intel commented on GitHub (Mar 6, 2025):

Great suggestion! A simple way to implement this is by listening for the CTRL/CMD + W key combination and triggering a function to close the active request tab. In Vue.js, this can be done with window.addEventListener("keydown", this.handleKeydown), where handleKeydown() checks for the shortcut and executes this.closeActiveTab(). Would love to hear if this approach aligns with how tab handling is currently structured in the app!

<!-- gh-comment-id:2702713728 --> @MC-intel commented on GitHub (Mar 6, 2025): Great suggestion! A simple way to implement this is by listening for the `CTRL/CMD + W` key combination and triggering a function to close the active request tab. In Vue.js, this can be done with `window.addEventListener("keydown", this.handleKeydown)`, where `handleKeydown()` checks for the shortcut and executes `this.closeActiveTab()`. Would love to hear if this approach aligns with how tab handling is currently structured in the app!
Author
Owner

@darraghenright commented on GitHub (Apr 30, 2025):

Yes please! I am very trigger happy with cmd+w in my browser, VSCode etc. I am always really surprised when this command closes Hoppscotch entirely. Conversely, it's a pain to close all the tabs manually with a mouse.

<!-- gh-comment-id:2841490469 --> @darraghenright commented on GitHub (Apr 30, 2025): Yes please! I am very trigger happy with `cmd+w` in my browser, VSCode etc. I am always really surprised when this command closes Hoppscotch entirely. Conversely, it's a pain to close all the tabs manually with a mouse.
Author
Owner

@DavidJMStepputat commented on GitHub (Jun 1, 2025):

Would be a great addition to the overall usability of the amazing hoppscotch app!

Coming from Postman (which supports tab closing with CTRL/CMD + W) and it happens several times a day I close hoppscotch by mistake this way ;)

<!-- gh-comment-id:2926435201 --> @DavidJMStepputat commented on GitHub (Jun 1, 2025): Would be a great addition to the overall usability of the amazing hoppscotch app! Coming from Postman (which supports tab closing with CTRL/CMD + W) and it happens several times a day I close hoppscotch by mistake this way ;)
Author
Owner

@liyasthomas commented on GitHub (Jun 1, 2025):

We’re working on making the desktop app better, and adding keyboard shortcuts for tabs is on our list of things to do. Since this ticket is a duplicate, I’m closing it. But if you’re interested in contributing to the project, feel free to open a pull request.

<!-- gh-comment-id:2927592134 --> @liyasthomas commented on GitHub (Jun 1, 2025): We’re working on making the desktop app better, and adding keyboard shortcuts for tabs is on our list of things to do. Since this ticket is a duplicate, I’m closing it. But if you’re interested in contributing to the project, feel free to open a pull request.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1817
No description provided.