Skip to content

Add link dialog fails to link if you press enter twice too quickly #1722

Open
@FliegendeWurst

Description

@FliegendeWurst

Description

Steps to reproduce:

  1. Open "Add link" dialog, search for a note, select with arrow keys
  2. Press enter twice, quickly

Expected behaviour:

Same as when pressing enter twice slowly, a link is created.

Actual behaviour:

"Choose note type" dialog for new note is opened.

Javascript event handlers are run single-threaded, so it is in principle possible to fix this issue robustly. The first key event handler needs to (synchronously) set everything up for the second key event handler.

TriliumNext Version

0.92.7 (this is a long-standing issue)

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

NixOS 25.05 unstable

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    UIIssues related to user-interface/front-end

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions