Skip to content

Bug: quickfiler-search-keystroke-focus-steal #438

Description

@drmoisan
  • Work Mode: full-bug

Summary

Typing into the QuickFiler folder-search textbox loses keyboard focus after roughly one to two characters. Each TextChanged event opens the breadcrumb folder drop-down, and opening the drop-down moves focus to the popup surface, so the remainder of the typed search string is not delivered to the textbox and the view jumps to the folder that was selected in the partially-typed result set.

Environment

  • OS/version: Windows 11 Pro 10.0.26200
  • Runtime: .NET Framework 4.8.1 WinForms VSTO add-in with Microsoft WebView2
  • UI path: QuickFiler ItemViewer folder-search textbox (TxtboxSearch) and the WebView2 breadcrumb folder selector
  • Data source or fixture: FolderPredictor / IFolderSearchHandler.FindFolder results for a wildcard search string

Steps to Reproduce

  1. Open QuickFiler on an item so an ItemViewer folder-search textbox is available.
  2. Place focus in the folder-search textbox.
  3. Type a multi-character folder search string at normal typing speed (for example invoices).
  4. Observe where the caret and keyboard focus are after the first one to two characters, and observe which folder the selector shows.

Expected Behavior

  • Typing in the search textbox opens (or keeps open) the folder drop-down and refreshes its filtered contents on every keystroke.
  • Keyboard focus and the caret stay in the search textbox for the whole time the user is typing. No keystroke is redirected to the drop-down surface.
  • The drop-down updates its rows and its highlighted row without taking focus and without committing a folder selection.
  • Focus moves to the drop-down only on an explicit user gesture: Down arrow from the textbox (existing TextBoxSearch_KeyDown contract), a click on the drop-down arrow, or a click on a row.

Actual Behavior

  • After approximately one to two characters, keyboard focus leaves the search textbox and the selector surface receives focus, so subsequent characters are not appended to the search text.
  • The selector highlights and shows the folder that matched the truncated search string, which reads as the view "jumping to the open folder" mid-typing.

Logs / Screenshots

  • Attached minimal logs or screenshot
  • Code-read evidence (2026-08-07) is recorded under Suspected Cause below; no runtime log capture yet.

Impact / Severity

  • Blocker
  • High
  • Medium
  • Low

Folder search is the primary way to file an item to a folder that is not among the suggestions. Because focus is lost after one to two characters, the search textbox is effectively unusable for any multi-character query, and the user must retype or click back into the textbox repeatedly.

Source

From: docs/features/potential/2026-08-07-quickfiler-search-keystroke-focus-steal.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions