keyboard navigation in systemsettings
ClosedPublic

Authored by mart on Oct 9 2017, 1:27 PM.

Details

Summary

correct keyboard navigation in systemsettings, since there is a mix
of qwidgets and QQuickWidgets, when a QQW takes focus, then the
focus chain in the keyboard navigation should traverse it, then go
put of it and focus the next widget, being a normal qwidget or another
qqw in which case the same hack applies

Test Plan

navigating in and out the sidebar and the intro page works

QML based kcms are still not managed, they will need a similar thing

Diff Detail

Repository
R124 System Settings
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mart created this revision.Oct 9 2017, 1:27 PM
Restricted Application added a project: Plasma. · View Herald TranscriptOct 9 2017, 1:27 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart added a reviewer: Plasma.Oct 9 2017, 1:27 PM
mart updated this revision to Diff 20518.Oct 9 2017, 2:28 PM
  • activate items on space, enter and return
davidedmundson added inline comments.
sidebar/SidebarMode.cpp
515

either rootObject()->metaObject()->method("")->invoke();

or

QMetaObject::invoke()

getting the right object to call a static method on isn't worth it.

sidebar/package/contents/ui/IntroIcon.qml
41

why 4?

Is this the item.children count?

mart updated this revision to Diff 20892.Oct 17 2017, 8:28 AM
  • some hacks to improve keyboard navigation for QQuickWidget
  • focus search field on startup
  • Merge branch 'master' into randa/accessibility
  • some keybaord navigation fixes
  • correctly navigate between the two QQuickWidgets
  • proper metaobject invocation
This revision was automatically updated to reflect the committed changes.