https://bugs.kde.org/show_bug.cgi?id=480531

            Bug ID: 480531
           Summary: KRunner inserts search results under the cursor after
                    I've started navigating to others with the keyboard
    Classification: Plasma
           Product: krunner
           Version: 5.27.10
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: philipp.reichm...@gmail.com
                CC: alexander.loh...@gmx.de, natalie_clar...@yahoo.de
  Target Milestone: ---

SUMMARY
When I type a search string into KRunner, I often begin navigating to the
desired item with the keyboard as soon as it appears. However, after I've
already started navigating, sometimes other search results appear at the top of
the list if KRunner prioritizes them higher. These new items displace my
desired item downwards, but the cursor stays at the position it is. Effectively
the item under the cursor changes as KRunner inserts new items at the top of
the list. Sometimes it happens that I'm already on the desired item, but before
I manage to press Enter, KRunner has inserted some other item under the cursor,
and when I press Enter, I inadvertently open that other item instead. 

This is undesirable. As soon as I've started navigating with the keyboard,
KRunner should never change the item under the cursor. If KRunner decides to
add N items at or above the cursor after I've started navigating with the
keyboard. the cursor should move down N positions to stay on the item it was
on. 

At least it should be configurable whether keyboard navigation should take
precedence over late list additions or not.

STEPS TO REPRODUCE
This is hard to reproduce 1:1 because of caching and different priorities apps
everywhere, but here is how I have the problem pop up:
1. Open KRunner
2. Start typing "code" (to open VS Code). KRunner starts to build a list of
search results.
3. Applications appear first; as VS Code appears under "Applications", press
the down arrow key to navigate to it 
4. Then folders with names such as "codecs" begin to appear at the top of the
list, displacing VS Code towards the bottom 
5. I hit Enter and inadvertently open a "codecs" folder that KRunner has
inserted under the cursor, not the VS Code that my cursor was on

OBSERVED RESULT
As new results appear at the top of the list, displacing the ones I already saw
and was navigating to, the cursor stays at the position I managed to navigate
to (e.g. 2nd or 3rd from the top). But the item at that position under the
cursor changes, and the item I wanted to navigate to moves further and further
away. 

EXPECTED RESULT
As new results appear at the top of the list, the cursor should stay on the
item that I managed to navigate to when new items appeared above it. If N items
appear above the cursor, I expect the cursor to move down N positions.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240125
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.7.1-1-default (64-bit)
Graphics Platform: Wayland

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to