Skip to content

Cmd+W (Ctrl+W) does not close search tabs on macOS (5.2.0) #24214

@toduyemi

Description

@toduyemi

qBittorrent & operating system versions

qbittorent: v5.2.0 via homebrew
OS: macOS Tahoe 26.4.1

What is the problem?

The new Ctrl+W search tab close shortcut added in 5.2.0 (#23747) doesn't work on macOS. Pressing Cmd+W (the macOS equivalent) closes the entire qBittorrent window instead of the search tab, and pressing the physical Ctrl+W does nothing.

Interestingly, Cmd+F4 (the other keybind for the "Close" shortcut) works fine and closes the tab as expected. I I believe the shortcut itself is registered correctly but Cmd+W gets swallowed by the window close handler before it reaches the tab.

Steps to reproduce

  1. Open the Search tab
  2. Press Cmd+W
  3. The whole window closes instead of just the tab

Additional context

Expected behaviour: search tab closes, app stays open

Confirmed working: cmd+F4 closes the tab correctly, so the shortcut is wired up and working, just not reachable via Cmd+W.

Workaround: I used Karabiner-Elements and remapped Cmd+W to Cmd+F4 scoped specifically to qBittorrent. Caveat being this affects Cmd+W anywhere in the app, not just the search tab.

Log(s) & preferences file(s)

qBittorrent copy.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: macOSIssues specific to macOS

    Type

    No type
    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