Bug 387951 - Tabbing to navigate in list of results is broken
Summary: Tabbing to navigate in list of results is broken
Status: CONFIRMED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.19.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2017-12-16 06:23 UTC by Kishore Gopalakrishnan
Modified: 2020-09-08 05:10 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2017-12-16 06:23:26 UTC
First of all, the tab key also highlights the 'settings' and 'close' button to the left an right of the text box, in addition to other items. While this behaviour is slightly inconvenient, I guess it can be argued that some people might desire this behaviour. 

However, more importantly, if I type a query that brings up a result that gives an additional action (for example, if I type 'kill krun', which brings up a result through the command line runner that will allow you to either run the command, or run it in a konsole window by pressing 'shift+enter'. Typing this will also bring up a second result from the 'terminate applications' runner, which is unselecteable via tabbing as described later) the tabbing seems to get 'stuck', tabbing only between the settings button, the textbox, the close button, and the currently highlighted result. This makes krunner unusable every time one such result comes up as the first highlighted result, since we cannot navigate to any other results by pressing tab.
Comment 1 Erik Quaeghebeur 2018-01-31 13:25:33 UTC
I encounter the issue, *visually*. My interpretation is different.

Namely, indeed when one gets a list of options from krunner and wants to select one using up/down arrows (which do not pass settings and close) or tab, only every other option gets highlighted. So, visually, what happens is that one starts with the top option, presses <down> and nothing changes, presses <down> again and now the third options is highlighted. However, when one presses enter after the first <down>, the non-highlighted option that should have been highlighted is triggered.

@Kishore: can you test and report back whether your issue is also just visual or not?

I'm on Gentoo stable with krunner 5.40.0 and plasma 5.11.5, installed on a system with intel graphics (which seem to cause all kinds of problems).

@Kishore: can you let us know which version of krunner you are using? Also, which graphics system do you use?
Comment 2 Kishore Gopalakrishnan 2018-01-31 17:39:35 UTC
(In reply to Erik Quaeghebeur from comment #1)
> I encounter the issue, *visually*. My interpretation is different.
> 
> Namely, indeed when one gets a list of options from krunner and wants to
> select one using up/down arrows (which do not pass settings and close) or
> tab, only every other option gets highlighted. So, visually, what happens is
> that one starts with the top option, presses <down> and nothing changes,
> presses <down> again and now the third options is highlighted. However, when
> one presses enter after the first <down>, the non-highlighted option that
> should have been highlighted is triggered.
> 
> @Kishore: can you test and report back whether your issue is also just
> visual or not?
> 
> I'm on Gentoo stable with krunner 5.40.0 and plasma 5.11.5, installed on a
> system with intel graphics (which seem to cause all kinds of problems).
> 
> @Kishore: can you let us know which version of krunner you are using? Also,
> which graphics system do you use?

I can activate the secondary option when it is selected, so it is not purely a visual glitch for me. Right now, krunner --version returns 5.11.5. I am using Intel graphics.
Comment 3 Alexander Lohnau 2020-07-12 06:37:38 UTC
I can confirm this issue on KDE Neon Unstable.

>First of all, the tab key also highlights the 'settings' and 'close' button to the left an right of the text box, in addition to other items. While this behaviour is slightly inconvenient, I guess it can be argued that some people might desire this behaviour. 
Yes, for instance I am a big fan of this :-).

But when we have the first item selected(also by default when we have typed a query) we expect its first action/the next item to get the focus when pressing tab.
Comment 4 imraro 2020-09-07 17:28:25 UTC
> Yes, for instance I am a big fan of this :-).

I think that it'is very inconvenient. How often do you use close button through TAB key? My opinion is that for choosing second search result I need to press TAB key once not three times... Nearly all keyboard-only oriented shortcuts trying to escape from arrow-keys.
Comment 5 Erik Quaeghebeur 2020-09-07 18:44:05 UTC
My issue (which I now realize is really different from Kishore's) is fixed in 5.70.0. Kishore's issue is still present. However, I believe it is intended behavior and that one is supposed to select entries using the arrows. That doesn't mean Kishore's preferred behavior may not be reasonable, but it would make it a wish instead of a bug.
Comment 6 Kishore Gopalakrishnan 2020-09-08 05:07:14 UTC
You are all right about tab vs arrow keys. However, there is one instance of buggy behaviour that persists:

Steps to reproduce:
1. Make sure the 'terminate applications' and 'command line' runners are enabled. (Just to make this example work)
2.
Comment 7 Kishore Gopalakrishnan 2020-09-08 05:10:31 UTC
You are all right about tab vs arrow keys. However, there is one instance of
buggy behaviour that persists:

Steps to reproduce:
1. Make sure the 'terminate applications' and 'command line' runners are
enabled. (Just to make this example work)
2. Type 'kill krun'
3. you will see a result to terminate krunner (the first highlighted result) and another one below it to runn the command 'kill krun'
4. Press tab repeatedly.

OBSERVED RESULTS:
Tabbing only between the settings button, the textbox, the close button, and the currently highlighted result (terminate krunner).

EXPECTED BEHAVIOUR:
Tabbing should also iterate over the other returned results, in addition to the close button, secondary actions, etc.


PS: Sorry, I accidentally pressed 'save changes' before completing the comment.