Skip to content

SQL editor should receive focus when creating a new tab #1765

Description

@nano9g

What happened?

When I create a new SQL editor tab, the Filter box often receives focus instead of the SQL editor. I keep pasting large chunks of SQL into the Filter box because of this. 😄

Thank you for making database management on the Mac so much easier!

Steps to reproduce

  1. Connect to a database (SQLite in my case)
  2. Press ⌘+T
  3. The cursor will typically correctly be placed in the SQL editor
  4. Press ⌘+T again
  5. Focus is moved to the Filter box in the top right instead of the SQL editor

(This is the most reliable way to reproduce the bug, but it can also happen when no tabs are open if the Filter box is already focused.)

Expected behavior

The newly-created SQL editor should receive focus.

Database type

None

TablePro version

0.52.1

macOS version & chip

macOS 15.7.8 / Apple Silicon

Screenshots / Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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