Bug 383391 - cannot use keys other than Up/Down to navigate candidates
Summary: cannot use keys other than Up/Down to navigate candidates
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: QuickOpen (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2017-08-11 11:58 UTC by Amos Bird
Modified: 2017-08-11 23:16 UTC (History)
2 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 Amos Bird 2017-08-11 11:58:52 UTC
Hi, I have no arrow keys on my keyboard so i need a remapping to use kdevelop in a keyboard centric way. I've set ctrl-p to goto quickopen bar but failed to map ctrl-j/k as down/up keys.
Comment 1 Francis Herne 2017-08-11 12:14:46 UTC
As mentioned on IRC, I don't agree that this is a (KDevelop) bug.

Navigating in lists is a behaviour found in almost every GUI application, arrow keys don't magically disappear just for us.

The Qt platform can and should set the global behaviour for all applications; the KDE one already allows that. http://www.flherne.uk/files/list_shortcuts.png

If this isn't currently possible using qt5ct it should be added there.
Comment 2 Francis Herne 2017-08-11 12:25:31 UTC
That said, the kde-platform settings I mention don't appear to actually work for me...

(anywhere, not only KDevelop)
Comment 3 Kevin Funk 2017-08-11 12:41:28 UTC
In contrast to Francis, I do wonder whether it should be fixed on our side. We have an abstraction for this in KStandardActions, this is something we could re-use for the completion lists we have in KDevelop:

We could use something like this I think for Quick Open:
https://lxr.kde.org/source/frameworks/kcompletion/src/khistorycombobox.cpp#0376

KStandardShortcut::rotateUp() and KStandardShortcut::rotateDown() are actually the two shortcuts mentioned in Francis' screenshot:
  http://www.flherne.uk/files/list_shortcuts.png

Note: This is only about navigating in completion lists in KDevelop; the rest is unrelated. As seen with the reporter, this is the biggest issue. Arrows keys are not really needed for any other actions in KDevelop (and in KTE one can use the vimode with hjkl keys)
Comment 4 Sven Brauch 2017-08-11 23:16:50 UTC
I think this is the same issue: https://codereview.qt-project.org/#/c/147820/