[Bug] If the first character entered into the search box is a space, the preview window will close.

Open Beginner friendly
#2,027 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@MORTEM3845 is already working on this.

Since Oct 23, 2026.

  • #2035 by @MORTEM3845 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
67/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
desktop

Research direction

Start by tracing how the search box handles a leading space and Enter while a text preview is open; the issue does not name the relevant files or tests. Reproduce both behaviors in QuickLook 4.5.0 on Windows, then locate the search input and its key handling. Done means a leading space keeps the preview open and Enter in the search box does not open an external application.

Written by the indexing model from the issue text.

Description

If the first character entered into the search box is a space, the preview window will close.
Additionally, pressing the Enter key while in the search box causes the text to be opened in an external application.

To Reproduce
Steps to reproduce the behavior:

  1. Use the spacebar to preview a text file.
  2. Entering a space in the search box causes the preview window to close.

Expected behavior
Do not exit when a space is the first character in the search box.
Do nothing when the Enter key is pressed in the search box.

Desktop (please complete the following information):

  • OS Version: Win11 25H2
  • QuickLook Version: 4.5.0 from scoop
Dominant language
C#
Stars
25.7k
Forks
1.4k
Avg merge
3d 19h
Merged PRs (30d)
3

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from QL-Win/QuickLook

All issues in QL-Win/QuickLook

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.