Ctrl+W closes LSP toolview when it has focus

Fixes #144 (closed)

Behavior

  • When the LSP toolview has focus (via the user clicking it or it is toggled instantly via LSP actions) and the user presses a close sequence (Ctrl + W), it closes the LSP toolview tab instead of the file.
  • When the user focuses on other widgets instead of the toolview, it acts normally and closes the file.

Changes

  • Installs an event filter on toolview widget.
  • The event filter intercepts shortcut events, checks if it is a close sequence and whether the toolview is in focus and then calls tabCloseRequested(idx).

Recording

2025-12-31_09-24-28

Edited by Ojas Maheshwari

Merge request reports

Loading