Skip to content

Keypresses also register on Files pane immediately after switching files #24

@scriptingtest

Description

@scriptingtest

Describe the bug
Immediately after switching files, the Files pane is simultaneously focused (indicated by highlight).
In this state, keypresses also register as interactions with the Files pane. This becomes problematic when:

  • Typing a filename for a newly created file
  • Editing a Canvas file by selecting cards

To Reproduce
Assuming that TagRoutes release 1.1.4 is enabled in a new Obsidian vault, do either of the following:

  1. Create a new Markdown file
    1. The text cursor should be focused on the filename in the markdown tab.
    2. Do not click anywhere. Type a word or letter, then press Space.
  2. Create a new Canvas file
    1. Double-click the canvas to create a new card.
    2. The text cursor should be focused within the card in the canvas tab.
    3. Do not click anywhere. Type a word or letter, then press Space.
    4. Alternatively, click outside the card. Click once to select the card, then press Delete.

Expected behavior
Space/Delete should not interrupt typing/editing due to also interacting with the Files pane.

Desktop (please complete the following information):

  • OS: Windows 11

Additional context
Add the option to toggle automatic highlighting on the current file in the Files pane.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions