Skip to content

Cmd+F to focus search field not working #17

Description

@demigodmode

Description

Cmd+F keyboard shortcut to focus the search field in the toolbar doesn't work.

Root Cause

SwiftUI's FocusState doesn't work properly with TextFields inside toolbars. This is a known SwiftUI limitation.

Possible Solutions

  1. Move search field from toolbar into main content area
  2. Use AppKit's NSSearchField instead of SwiftUI TextField
  3. Use a custom NSViewRepresentable to manually manage focus

Workaround

Users can click the search field directly with the mouse.

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