Joplin: Goto Anything: Keyboard selection starts at bottom of visible results

Created on 6 May 2020  路  4Comments  路  Source: laurent22/joplin

Environment

Joplin version: v1.0.201
Platform: Windows
OS specifics: 10

Steps to reproduce

  1. Open Goto Anything search
  2. Enter a search term where the number of results triggers the scrollbar
  3. Press the arrow up or down key
  4. The selection will be at the bottom of the result list

Describe what you expected to happen

That the first element of the results is highlighted/selected.
The same as the behavior with search terms that do not trigger the scrollbar.

bug desktop high

Most helpful comment

I have located the problem. selectedItemId is reused between two calls of updateList. I will submit a PR to fix this.

All 4 comments

Can't reproduce.
test

I can reproduce since I reported this bug on the forum https://discourse.joplinapp.org/t/strange-goto-anything-behavior/8139/3

Okay, can you give me some more details?

For example, in this issue, it says that the up or down arrow keys are causing the problem.
In the forum, the "enter" key is causing the problem.

Also, does the selection always go to the 16th entry (last?) or does it change?
Try adding what you searched for in the note body. Does it change the selection position?

I have located the problem. selectedItemId is reused between two calls of updateList. I will submit a PR to fix this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gituser94x54102 picture gituser94x54102  路  38Comments

jcgerhard picture jcgerhard  路  43Comments

testman42 picture testman42  路  97Comments

dimyself picture dimyself  路  308Comments

poVoq picture poVoq  路  69Comments